From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e812d69362dc764c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-15 19:36:55 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail Reply-To: "DuckE" From: "DuckE" Newsgroups: comp.lang.ada References: Subject: Re: How to lock keys. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Sat, 16 Dec 2000 03:36:53 GMT NNTP-Posting-Host: 24.6.221.63 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 976937813 24.6.221.63 (Fri, 15 Dec 2000 19:36:53 PST) NNTP-Posting-Date: Fri, 15 Dec 2000 19:36:53 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:3195 Date: 2000-12-16T03:36:53+00:00 List-Id: 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" 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! :) > >