ZeroMemory
ZeroMemory宏
The ZeroMemory macro fills a block of memory with zeros.
ZeroMemory宏用0來(lái)填充一塊內(nèi)存區(qū)域。
To avoid undesired effects of optimizing compilers, use theSecureZeroMemory function.
為了避免優(yōu)化編譯器的意外的影響,請(qǐng)使用SecureZeroMemory函數(shù)。
void ZeroMemory(
PVOID Destination, //地址
SIZE_TLength //填0的長(zhǎng)度
);
Parameters
參數(shù):
Destination
[in] Pointer to the starting address of the block of memory to fillwith zeros.
指向一塊準(zhǔn)備用0來(lái)填充的內(nèi)存區(qū)域的開(kāi)始地址。
Length
[in] Size of the block of memory to fill with zeros, inbytes.
準(zhǔn)備用0來(lái)填充的內(nèi)存區(qū)域的大小,按字節(jié)來(lái)計(jì)算。
Return V--alues
返回值:
This function has no return value.
這個(gè)函數(shù)沒(méi)有返回值。
Remarks
備注:
This function is defined as the RtlZeroMemory macro. For moreinformation, see Winbase.h and Winnt.h.
這個(gè)函數(shù)被定義為RtlZeroMemory宏。至于更多信息,請(qǐng)查看Winbase.h與Winnt.h這兩個(gè)頭文件。
Requirements
必要條件:
Client: Requires Windows XP, Windows 2000 Professional, WindowsNT Workstation, Windows Me, Windows 98, or Windows 95.
Server: Requires Windows Server 2003, Windows 2000 Server, orWindows NT Server.
Header: Declared in Winbase.h; include Windows.h.
See Also
請(qǐng)參閱
Memory Management Overview, Memory Management Functions,CopyMemory, FillMemory, MoveMemory, SecureZeroMemory
愛(ài)華網(wǎng)本文地址 » http://www.klfzs.com/a/25101016/296971.html
愛(ài)華網(wǎng)