__writemsr

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at __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.

IntrinsicArchitecture
__writemsrx86, x64

Header file <intrin.h>

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

Compiler Intrinsics

Show: