RtlZeroMemory
The RtlZeroMemory routine fills a block of memory with zeros, given a pointer to the block and the length, in bytes, to be filled.
VOID
RtlZeroMemory(
IN VOID UNALIGNED *Destination,
IN SIZE_T Length
);
Parameters
Destination
Pointer to the memory to be filled with zeros.
Length
Specifies the number of bytes to be zeroed.
Return Value
None
Headers
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
Comments
To zero out a memory buffer to erase security-sensitive data, use RtlSecureZeroMemory instead.
Callers of RtlZeroMemory can be running at any IRQL if the Destination block is in nonpaged pool. Otherwise, the caller must be running at IRQL <= APC_LEVEL.