Maybe first you start by identify your target process, then
Enumerate the windows from the system and check one by one using GetWindowThreadProcessId(current_hwnd, ) if is the one you need (i.e. has same process id )
or use EnumThreadWindows and obtain all windows on target process....
e.g a...
You ca try to replace implementation/behaviour for default (global) window classes in a dll and to make this dll to be implicitely loaded by all process. See documentation for RegisterClassEx, "System Classes", "Application Global Classes", CS_GLOBALCLASS , "How the...
Hi nagi,
Been verry busy last two months.
Btw do you have any Idea what windows API is available after Shutdown ? I need for example to do something in the very next moment after shutdow is initiated.
I cannot do with an application that monitors WM_QUERYENDSESSION because this app cannot...
I've tried the following on win2k Server and it works ok.
Did not yet checked on Xp,
maybe XP uses other info flags in lParam and it is not zero
you need to check if the bit marked by ENDSESSION_LOGOFF mask is one.
if(wParam)
{
if( lParam && ENDSESSION_LOGOFF )
{
//it is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.