comp.lang.ada
 help / color / mirror / Atom feed
From: "DuckE" <nospam_steved94@home.com>
Subject: Re: How to lock keys.
Date: Sat, 16 Dec 2000 03:36:53 GMT
Date: 2000-12-16T03:36:53+00:00	[thread overview]
Message-ID: <prB_5.152435$U46.4962510@news1.sttls1.wa.home.com> (raw)
In-Reply-To: Mlt_5.8850$0U2.334755@news20.bellglobal.com

Under Windows NT (the doc's indicate this should work under 98) there is a
function called "SetConsoleCtrlHandler" that permits you to add a handler
callback that is invoked when Ctrl+C is typed.  The action that is taken
depends on the return from this function.

I don't have any sample code on the machine I'm working on right now, or I'd
send you an example.  If you can't figure it out send me an email at
steved94@home.com and I'll send you some example source in a couple of days.

SteveD


"Freelancer" <freelancer_2001@hotmail.com> wrote in message
news:Mlt_5.8850$0U2.334755@news20.bellglobal.com...
> I'm using ObjectAda and programming console programs in win98. I was
> wondering if someone could tell me how to lock out any keys that I don't
> want in my program.
>
>
> For example : I would like to lock out CTRL+C so that it doesn't terminate
> the program.
>
> Thanks for your help! :)
>
>





  parent reply	other threads:[~2000-12-16  3:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-15 18:24 How to lock keys Freelancer
2000-12-15 19:26 ` Larry Kilgallen
2000-12-15 20:40   ` Freelancer
2000-12-15 22:18     ` Ted Dennison
2000-12-15 22:32     ` Mike Silva
2000-12-15 23:54     ` Gautier
2000-12-16  3:45   ` DuckE
2000-12-16 14:07     ` Marin David Condic
2000-12-15 23:56 ` Alexander Antonenko
2000-12-16  3:36 ` DuckE [this message]
2000-12-16 14:15   ` Marin David Condic
2000-12-17 22:40     ` Freelancer
2000-12-18  1:30       ` DuckE
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox