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.
Generates the Write to Model Specific Register (
void __writemsr( unsigned long Register, unsigned __int64 Value );
The model specific register.
The value to write.
Header file <intrin.h>
This function may only be used in kernel mode, and this routine is only available as an intrinsic.