16,548
社区成员




DWORD WINAPI BeginInstallHook( LPVOID lpParam )
{
CAsaApp *p = (CAsaApp*)lpParam;
p->InstallHook();
/*
MSG msg;
PeekMessage(&msg, NULL, WM_USER, WM_USER, PM_NOREMOVE);//如果没有这些代码 就没有效果 不知道什么原理?
while(GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
} */
return 1;
}
CAsaApp::CAsaApp()
{
::CreateThread(0, 0, BeginInstallHook, this, 0, 0);
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}