复制了一个系统函数,写到自己的函数中,编译不能通过,请大家帮忙看下:
DWORD WINAPI myDbgUiRemoteBreakin( LPVOID lpParameter)
{
DWORD hh=0;
_asm
{
PUSH 8
PUSH 0x7C971E58
CALL 0x7C92E8CB
MOV EAX,FS:[18]
MOV EAX,DS:[EAX+30]
CMP DS:[EAX+2],0
JNZ 0x7C971E2F
TEST DS:[0x7FFE02D4],2
JE 0x7C971E4F
AND SS:[EBP-4],0
CALL DbgBreakPoint
JMP 0x7C971E4B
XOR EAX,EAX
INC EAX
mov hh,eax
}
return hh;
}
错误提示;
“MOV EAX,FS:[18]” error C2415: improper operand type
“XOR EAX,EAX” error C2415: improper operand type
如何解决?
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课