Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Windows Signals"

by esskar (Deacon)
on Mar 04, 2004 at 22:42 UTC ( [id://334064]=note: print w/replies, xml ) Need Help??


in reply to Windows Signals"

When a logoff event occurs, the system notifies all processes in the system as follows:

All windows of processes in the logon session being logged off receive the WM_QUERYENDSESSION (0x0011) and WM_ENDSESSION (0x0016) messages. All windows on the desktops of the window station being logged off receive these messages, even if the windows belong to processes running in another logon session.

Replies are listed 'Best First'.
Re: Re: Windows Signals"
by meetraz (Hermit) on Mar 05, 2004 at 03:16 UTC
    For simple console apps, you can also call SetConsoleCtrlHandler() and the message sent for logoff is CTRL_LOGOFF_EVENT
      Thanks. How may I implement that in perl? Jes

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://334064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-26 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found