I have an application in which I need to end a screensaver before it's invoked.
Will TerminateProcess or KillProcess work?
Hope everyone has a great 4th.
Thanks.
Will TerminateProcess or KillProcess work?
Hope everyone has a great 4th.
Thanks.
BOOL CALLBACK KillScreenSaverFunc (HWND hwnd, LPARAM lParam)
{
char szClass [32];
GetClassName (hwnd, szClass, sizeof(szClass)-1);
if (strcmpi (szClass, "WindowsScreenSaverClass") == 0)
PostMessage (hwnd, WM_CLOSE, 0, 0);
return TRUE;
}
From:
Bob Moore's Coding Tips
Thanks JimmyClif.
Andy
Andy
You're welcome... and you too a happy 4th.
And.. for the Canadians in here... Happy 1st :)
And.. for the Canadians in here... Happy 1st :)