为了账号安全,请及时绑定邮箱和手机立即绑定

麻烦请教一下ZeroMemory()函数,具体内容如下~

麻烦请教一下ZeroMemory()函数,具体内容如下~

尚方宝剑之说 2021-12-31 11:07:36
能介绍下它的作用与参数的意义吗
查看完整描述

2 回答

?
小怪兽爱吃肉

TA贡献1852条经验 获得超1个赞

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.

就是说这个函数实现的功能是将Destination制定的内存地址开始,Length字节长度的内存数据清零。

查看完整回答
反对 回复 2022-01-03
?
子衿沉夜

TA贡献1828条经验 获得超3个赞

对传入的地址清零。

查看完整回答
反对 回复 2022-01-03
  • 2 回答
  • 0 关注
  • 327 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信