Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer


This topic is new for Visual Studio 2005 SP1.

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.

Intrinsic Architecture


x86, x64

Header file <intrin.h>

END Microsoft Specific

© 2016 Microsoft