If (Button_GetCheck(hwndCtl)) {
SuspendThread(g_hThreadCntr);
SuspendThread(g_hThreadDspy);
} else {
ResumeThread(g_hThreadCntr);
ResumeThread(g_hThreadDspy);
}
break;
}
/////////////////////////////////////////////////////////////////////
BOOL CALLBACK Dlg_Proc
(HWND hDlg, UINT uMsg,
WPARAM wParam, LPARAM
lParam) {
BOOL fProcessed = TRUE;
switch (uMsg) {
HANDLE_MSG(hDlg,
WM_INITDIALOG, Dlg_OnInitDialog);
HANDLE_MSG(hDlg,
WM_DESTROY, Dlg_OnDestroy);
HANDLE_MSG(hDlg,
WM_COMMAND, Dlg_OnCommand);
default:
fProcessed = FALSE;
break;
}
return(fProcessed);
}
///////////////////////////////////////////////////////////////////
Int winapi WinMain (hinstance hinstExe,
HINSTANCE hinstPrev, LPSTR
lpszCmdLine, int nCmdShow) {
DialogBox(hinstExe,
MAKEINTRESOURCE(IDD_CRITSECS),
NULL,
Dlg_Proc);
return(0);
}