网站首页  词典首页

请输入您要查询的函数:

 

术语 zeromemory
释义 ZeroMemory
语法:
C++
void ZeroMemory(
[in] PVOID Destination,
[in] SIZE_T Length
);
ZeroMemory宏
填充用零一个内存块。
为了避免优化编译器的任何不良影响,使用SecureZeroMemory功能。
参数
Destination [in]
是对的内存块的起始地址指针,以填补零。
Length [in]
该内存块的大小,以填补零,以字节为单位。
返回值
此宏没有返回值。
备注
许多编程语言,包括复杂的变量初始化为零语法。可以有与这些行动的结果和ZeroMemory功能的差异。使用ZeroMemory清除任何编程语言的内存块。
这个宏被定义为RtlZeroMemory宏。有关更多信息,请参阅Winbase.h和WINNT.H中。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
参见
CopyMemory
FillMemory
MoveMemory
SecureZeroMemory
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==ZeroMemory Macro
Fills a block of memory with zeros.
To avoid any undesired effects of optimizing compilers, use the SecureZeroMemory function.
Syntax
C++
void ZeroMemory(
[in] PVOID Destination,
[in] SIZE_T Length
);
Parameters
Destination [in]
A pointer to the starting address of the block of memory to fill with zeros.
Length [in]
The size of the block of memory to fill with zeros, in bytes.
Return Value
This macro has no return value.
Remarks
Many programming languages include syntax for initializing complex variables to zero. There can be differences between the results of these operations and the ZeroMemory function. Use ZeroMemory to clear a block of memory in any programming language.
This macro is defined as the RtlZeroMemory macro. For more information, see Winbase.h and Winnt.h.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
See Also
CopyMemory
FillMemory
MoveMemory
SecureZeroMemory
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366920(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:23:20