win32汇编指针类型用法记录
定义一个指针类型:
(pDriverObject PDRIVER_OBJECT <>)
PDRIVER_OBJECT原型定义 PDRIVER_OBJECT typedef ptr DRIVER_OBJECT
局部变量
pDriverObject:PDRIVER_OBJECT
c++里可以直接pDriverObject->成员
汇编里不行
具体方法
mov eax,pDriverObject
assume eax:ptr DRIVER_OBJECT
mov [eax].DriverUnload,offset Unload
.
.
assum eax:nothing