invoke CreateToolhelp32Snapshot,TH32CS_SNAPPROCESS,0 mov hSnapShot,eax invoke Process32First,hSnapShot,addr stP .while eax lea edi,stP.szExeFile mov esi,dword ptr [szQQ] .if dword ptr [edi] == esi mov eax,stP.th32ProcessID mov @PID,eax invoke EnumWindows,_EnumProc,@PID .endif invoke Process32Next,hSnapShot,addr stP .endw invoke CloseHandle,hSnapShot_EnumProc proc hWnd,lParam LOCAL @dwThreadID invoke GetWindowThreadProcessId,hWnd,addr @dwThreadID push lParam pop eax .if eax == @dwThreadID ;比较PID push hWnd pop hWin invoke _SendHwnd,hWin ;显示句柄 .endif mov eax,TRUE ret_EnumProc endp
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课