From: murray AT southeast DOT net (Murray Stokely) Newsgroups: comp.os.msdos.djgpp Subject: Detecting Operating System Date: Sun, 29 Dec 1996 04:01:05 GMT Organization: ACiD Productions Lines: 16 Message-ID: <32c5ebb1.336016122@nntp.southeast.net> Reply-To: murray AT southeast DOT net NNTP-Posting-Host: ts4-000.southeast.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Can anyone tell me the best way to detect the host Operating System in DJGPP? I know about _go32_info_block.run_mode but it doesn't seem to be able to give me the exact information I need. I'd like to be able to detect Windows 95/NT, OS/2 and Linux/DosEmu. Also is it possible to use the Windows 95 print manager from console applications with DJGPP? Wouldn't I need a windows.h file or something? Printing straight to LPT1 can realy mess up things if you're already printing something in Windows. I thought for sure this topic had been discussed before, but I checked the faq and mail archives with no avail. Any help would be appreciated, thanks.. Murray Stokely ( murray AT southeast DOT net ) http://www.cdrom.com/pub/artpacks