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
);
None
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
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 < DISPATCH_LEVEL.