delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/21/10:50:11

From: brahms AT mindspring DOT com (Stan Brown)
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: Re: Detecting Windows and Windows directory from DOS
Date: Tue, 21 Mar 2000 10:35:19 -0500
Organization: Oak Road Systems
Lines: 44
Message-ID: <MPG.134160c4f0a1f29b98ae44@news.mindspring.com>
References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk> <38D108E3 DOT D9821E3B AT americasm01 DOT nt DOT com> <8arkm8$m3h$1 AT newsg2 DOT svr DOT pol DOT co DOT uk> <qft2dsk6mso6suit8q0aikucnffq0cb77q AT 4ax DOT com> <38D1EFAA DOT 7A48D29D AT is DOT elta DOT co DOT il> <38D6844B DOT 876E5631 AT bigfoot DOT com>
NNTP-Posting-Host: c7.ae.b2.4a
X-Server-Date: 21 Mar 2000 15:35:15 GMT
X-Newsreader: MicroPlanet Gravity v2.10
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Said richdawe AT bigfoot DOT com (Richard Dawe) in 
comp.os.msdos.programmer:
>Hello.
>
>Eli Zaretskii wrote:
>> The way to access the registry from DOS programs is known and well
>> documented.
>> There's a book called "Inside the Windows 95 Registry" which tells the
>> story and shows code.
>
>From what I can recall, this book does not contain enough information for
>programs working in 32-bit protected mode. Something to do with the value
>of the SS & BP registers before and after calls, although that's just a
>hazy recollection.
>
>> There's a library compatible with DJGPP (called regdos or something)
>> which can do that.  Look it up.
>
>Regdos seems to have vanished, reappeared and then vanished again - or
>rather, the author's home page has disappeared. Anyway, I just discovered
>that I put a copy of it here:
>
>http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#homeless

I just downloaded it out of curiosity, and in the very first 
header file I examined I found illegal C:

	#define __DOSX_H

All identifiers beginning with an underscore and followed by a 
capital letter or another underscore are reserved to the 
implementation (compiler and library), and in user code they lead 
to undefined behavior.

See
	http://www.mindspring.com/~brahms/c-predef.htm

-- 
Stan Brown, Oak Road Systems, Cleveland, Ohio, USA
                http://www.mindspring.com/~brahms/
comp.os.msdos.programmer FAQ:
    ftp://rtfm.mit.edu/pub/usenet/comp.os.msdos.programmer/
comp.lang.c FAQ: http://www.eskimo.com/~scs/C-faq/versions.html
more FAQs: http://www.mindspring.com/~brahms/faqget.htm

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019