为什么ZeroMemory被MASM32认为是未声明的?invoke ZeroMemory,eax,SIZEOF ofn

FlyingSch 2004-05-04 10:23:14
s
...全文
119 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
fanoble 2004-05-06
  • 打赏
  • 举报
回复
再重复一下,RtlZeroMemory 有2个版本:
参考:vc98\include\winnt.h line:6547
SteveYoung 2004-05-06
  • 打赏
  • 举报
回复
更正上边的:应该是RtlZeroMemory,手误。。。。。。。。。。
SteveYoung 2004-05-06
  • 打赏
  • 举报
回复
应该是RltZeroMemory,呵呵,我刚刚遇到这个错误。。
Bill1212 2004-05-06
  • 打赏
  • 举报
回复
其实就是c runtime lib的memset,

声明如下:

memset PROTO C, :DWORD, :SDWORD, :DWORD
fanoble 2004-05-05
  • 打赏
  • 举报
回复
楼主看着办吧:)
fanoble 2004-05-05
  • 打赏
  • 举报
回复
vc98\include\winbase.h line 99:
#define ZeroMemory RtlZeroMemory

RtlZeroMemory 有2个版本:
vc98\include\winnt.h line:6547

#if defined(_M_AXP64) || defined(_M_IA64)
NTSYSAPI
VOID
NTAPI
RtlZeroMemory (
VOID UNALIGNED *Destination,
SIZE_T Length
);
#else
#define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
#endif

fanoble 2004-05-05
  • 打赏
  • 举报
回复
ZeroMemory是一个macro
FlyingSch 2004-05-04
  • 打赏
  • 举报
回复
这个是什么函数?在MSDN中可以找到吗?ZeroMemory是WINDOWS的基础函数,为什么在MASM32的函数库中没有提供?
csdsjkk 2004-05-04
  • 打赏
  • 举报
回复
RtlZeroMemory
紫郢剑侠 2004-05-04
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/kmarch/hh/kmarch/k109_4nci.asp


RtlZeroMemory
The RtlZeroMemory routine fills a block of memory with zeros, given a pointer to the block and the length, in bytes, to be filled.

VOID
RtlZeroMemory(
IN VOID UNALIGNED *Destination,
IN SIZE_T Length
);
Parameters
Destination
Pointer to the memory to be filled with zeros.
Length
Specifies the number of bytes to be zeroed.
Return Value
None

Headers
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments
To zero out a memory buffer to erase security-sensitive data, use RtlSecureZeroMemory instead.

Callers of RtlZeroMemory can be running at any IRQL if the Destination block is in nonpaged pool. Otherwise, the caller must be running at IRQL <= APC_LEVEL.

See Also
RtlFillMemory, RtlSecureZeroMemory

FlyingSch 2004-05-04
  • 打赏
  • 举报
回复
There is no RtlZeroMemory in MSDN

21,497

社区成员

发帖
与我相关
我的任务
社区描述
汇编语言(Assembly Language)是任何一种用于电子计算机、微处理器、微控制器或其他可编程器件的低级语言,亦称为符号语言。
社区管理员
  • 汇编语言
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧