Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

__writemsr

Microsoft Specific

Generates the Write to Model Specific Register (wrmsr) instruction.


void __writemsr( 
   unsigned long Register, 
   unsigned __int64 Value 
);

Parameters

[in] Register

The model specific register.

[in] Value

The value to write.

Intrinsic Architecture

__writemsr

x86, x64

Header file <intrin.h>

This function may only be used in kernel mode, and this routine is only available as an intrinsic.

END Microsoft Specific

Community Additions

ADD
Show:
© 2015 Microsoft