Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sandiro
  • Order by date
  1. sandiro

    how can I get Hwnd FROM PID?

    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...
  2. sandiro

    How to refresh a new change in Window??

    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...
  3. sandiro

    WM_QUERYENDSESSION

    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...
  4. sandiro

    WM_QUERYENDSESSION

    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...

Part and Inventory Search

Back
Top