Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.89 KB

nf-wdm-write_register_ulong64.md

File metadata and controls

67 lines (52 loc) · 1.89 KB
UID title description tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wdm.WRITE_REGISTER_ULONG64
WRITE_REGISTER_ULONG64 function (wdm.h)
The WRITE_REGISTER_ULONG64 function (wdm.h) writes a ULONG64 value to the specified register address.
kernel
09/07/2021
WRITE_REGISTER_ULONG64 function
WRITE_REGISTER_ULONG64, WRITE_REGISTER_ULONG64 function
wdm.h
Wdm.h
Desktop
Available only in 64-bit versions of Windows.
NtosKrnl.exe
NtosKrnl.exe
Any level (see Remarks section)
Windows
WRITE_REGISTER_ULONG64
wdm/WRITE_REGISTER_ULONG64
APIRef
kbSyntax
DllExport
NtosKrnl.exe
WRITE_REGISTER_ULONG64

WRITE_REGISTER_ULONG64 function (wdm.h)

-description

The WRITE_REGISTER_ULONG64 routine dereferences the supplied pointer, inserts a memory barrier, and writes a ULONG64 value to the specified address.

-parameters

-param Register [in]

Pointer to the register, which must be a mapped range in memory space.

-param Value [in]

Specifies a ULONG64 value to write to the register.

-remarks

This routine inserts a memory barrier into your code. This barrier guarantees that every operation that appears in the source code before the call to this routine will complete before any operation that appears after the call.

For more info about memory barriers, see KeMemoryBarrier.

Callers of the WRITE_REGISTER_ULONG64 macro can be running at any IRQL, assuming the Register register is resident, mapped device memory.