int main() { DWORD dwpid = GetCurrentProcessId(); HANDLE hProcess = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, dwpid); printf("===pid=%d handle=%d\n", dwpid, hProcess); system("pause"); }
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
Zn风扇 每个进程有个句柄表,保存打开的句柄,句柄与进程有关,不能夸进程