ZeroMemory函数:把一块内存初始化为0

ZeroMemory函数:把一块内存初始化为0。

ZeroMemory

The ZeroMemory function fills a block of memory with zeros.

VOID ZeroMemory(
  PVOID Destination,  // memory block
  SIZE_T Length       // size of memory block
);

Parameters

Destination
[in] Pointer to the starting address of the block of memory to fill with zeros.
Length
[in] Size, in bytes, of the block of memory to fill with zeros.

Return Values

This function has no return value.

Requirements

  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Winbase.h; include Windows.h.

你可能感兴趣的:(ZeroMemory函数:把一块内存初始化为0)