Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!agate!monsoon.Berkeley.EDU!dmillar From: dmillar@monsoon.Berkeley.EDU (Derek Millar) Newsgroups: comp.os.msdos.programmer Subject: Re: Which keyboard is it? Keywords: keyboard Message-ID: <1991Jun10.191647.8052@agate.berkeley.edu> Date: 10 Jun 91 19:16:47 GMT References: <1991Jun10.142922.12444@cs.fau.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: ucb Lines: 12 In article <1991Jun10.142922.12444@cs.fau.edu> roy@shark.cs.fau.edu (Roy Levow) writes: >I need a method for telling within a program whether the keyboard on an >MS-DOS machine is an old-style keyboard or an enhanced keyboard. C or >asm code preferred. > >Thanks in advance. f you have an AT or PS/2 machine, you can use BIOS services 16h/5h and 16h/10h to write extended key codes into the keyboard buffer and read them back. If they come back, you have an extended keyboard P.S. sorry if this post doesn't work--I'm just learning the program. (and this editor)