热度 1|
PROCESSENTRY32 pe32;pe32.dwSize =sizeof(pe32);HANDLE hpro=::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);if(hpro==INVALID_HANDLE_VALUE){
return 0;
}
BOOL nowrun=Process32First(hpro,&pe32);while(nowrun){
if(pe32.szExeFile ==a)
{
DWORD proid=pe32.th32ProcessID;HANDLE hprocess=::OpenProcess(PROCESS_ALL_ACCESS,FALSE,proid);if(hprocess!=NULL){::TerminateProcess(hprocess,0);::CloseHandle(hprocess);
}
}nowrun=::Process32Next(hpro,&pe32);
}
小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)
GMT+8, 2024-5-3 01:14
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.