in reply to Re: Re: Re: SetConsoleCtrlHandler Script
in thread SetConsoleCtrlHandler Script

First, Thanks for help.

My need is trap logoff and shutdown events in my daemon application.
I'm not sure the SetConsoleCtrlHandler is the best way.
What is the way with the same results?

Jes

  • Comment on Re: Re: Re: Re: SetConsoleCtrlHandler Script

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: SetConsoleCtrlHandler Script
by BrowserUk (Patriarch) on Mar 09, 2004 at 22:08 UTC

    I strongly suggest that you take a look at Win32:Deamon by Dada or perhaps even easier win32::Daemon::Simple by Jenda. They have already done all the hard work of interfacing between the OS and perl for setting up Win32 services.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail