Accessing Alt & Ctrl Keys in 32 Bit Dos Applications



I'm developing a group of 32 Bit DOS applications (I'm unable to
develop Windows applications), and I need to access all kinds of
keyboard input. So far, I can get most keys, but I'm unable to get the
Alt & Ctrl keys. Here's what I'm doing:
char_var = getch();
if (char_var == '\0') // special or extended key
char_var = getch(); // fetch scancode
The MSDN documentation seems to indicate that the Alt/Ctrl keys can't
be accessed this way (and they sure don't...), but I can't find any way
to get them. Since many applications can, I'd like to know how. Any
help? TIA
.



Relevant Pages

  • Re: Great SWT Program
    ... there the arrow keys *sometimes* did something useful, ... both about how vim works and about ... called by all applications -- except that with the Unix model you ... for their putative purpose due to the clumsy interface that makes ...
    (comp.lang.java.programmer)
  • Fw: [FreeBSD-Announce] FreeBSD Security Advisory FreeBSD-SA-06:23.openssl
    ... The above patch reduces the functionality of libcryptoby ... prohibiting the use of exceptionally large public keys. ... For general information regarding FreeBSD Security Advisories, ... many applications using OpenSSL do not perform any validation ...
    (freebsd-questions)
  • Re: F lock key!
    ... > | remapping of the function keys. ... > |> If I were to design the keyboard I would have made the ... > | function keys as intended I have to MANUALLY switch the ... > | when I switch to those applications. ...
    (microsoft.public.windowsxp.hardware)
  • Re: F lock key!
    ... |> keyboard has power and then pressing the F2 key or if I ... | remapping of the function keys. ... | function keys as intended I have to MANUALLY switch the ... | when I switch to those applications. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Migrating Office XP to a new computer
    ... Your current keys should work with all of your applications. ... Post all replies to the group to keep the discussion intact. ...
    (microsoft.public.office.misc)