Re: Shutdown hook

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Alessio (peloquin_at_libero.it)
Date: 02/10/05


Date: Thu, 10 Feb 2005 20:05:24 GMT

tabris17 wrote:
> deal with WM_POWERBROADCAST message,and return BROADCAST_QUERY_DENY
>
>
> LRESULT CALLBACK WindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
> lParam )
> {
> if(uMsg==WM_POWERBROADCAST)
>
> return BROADCAST_QUERY_DENY;
> ... ...
> ... ...
> }
>
>
thank you, but this code doesn't works on XP.
BROADCAST_QUERY_DENY don't stop shutdown procress.

Alessio.



Relevant Pages

  • Re: Windows c programing
    ... > LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM ... > HDC hdc; ...
    (comp.lang.c)
  • Re: Windows c programing
    ... > LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM ...
    (comp.lang.c)
  • Re: In the need for some advice!
    ... LRESULT CALLBACK CW1_WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM ...
    (microsoft.public.vc.language)
  • Re: Shutdown hook
    ... >> LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Strange Onscreen Keyboard problem
    ... LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ... LRESULT OnMouseMove(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); ...
    (microsoft.public.vc.mfc)