[Israel.pm] Catching ^C under Win32?

ik idokan at gmail.com
Fri Aug 3 08:17:02 PDT 2007


On 8/3/07, Shmuel Fomberg <semuelf at 012.net.il> wrote:
> IK wrote:
>
> >> Is it possible?
> >
> >Sorry for the question, but what do you mean ? Unlike unics, Windows
> >is a gui based system, that ctrl+c is an event of the keyboard. So  do
> >you mean that you want to capture it inside a windows shell ? or
> >inside a gui based program ? or ...?
>
> Yes, I'm talking about a command line program.

Take a look at the following winAPI function:
SetConsoleCtrlHandler
http://msdn2.microsoft.com/en-us/library/ms686016.aspx

>
> Shmuel.
>
>

Ido
-- 
http://ik.homelinux.org/



More information about the Perl mailing list