FillMemory

The FillMemory function fills a block of memory with a specified value.

VOID FillMemory (

PVOID Destination, // pointer to block to fill
DWORD Length, // size, in bytes, of block to fill
BYTE Fill // the byte value with which to fill
);  

Parameters

Destination

Points to the starting address of the block of memory to fill.

Length

Specifies the size, in bytes, of the block of memory to fill.

Fill

Specifies the byte value with which to fill the memory block.

Return Values

This function has no return value.

See Also

CopyMemory, MoveMemory, ZeroMemory