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


Writes the specified value to the specified debug register.

void __writedr(unsigned DebugRegister, unsigned DebugValue);
void __writedr(unsigned DebugRegister, unsigned __int64 DebugValue);

[in] DebugRegister

A number from 0 through 7 that identifies the debug register.

[in] DebugValue

A value to write to the debug register.

These intrinsics are available only in kernel mode, and the routines are available only as intrinsics.




x86, x64

Header file <intrin.h>

Community Additions

© 2015 Microsoft