Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 930 Bytes

writemsr.md

File metadata and controls

48 lines (33 loc) · 930 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: __writemsr
__writemsr
09/02/2019
__writemsr
Write Model Specific Register instruction
wrmsr instruction
__writemsr intrinsic
938b1553-51a8-4822-a818-6bed79b0fde5

__writemsr

Microsoft Specific

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

Syntax

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

Parameters

Register
[in] The model-specific register.

Value
[in] The value to write.

Requirements

Intrinsic Architecture
__writemsr x86, x64

Header file <intrin.h>

Remarks

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

END Microsoft Specific

See also

Compiler intrinsics