Mail Archives: djgpp/2000/03/21/10:50:11
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 -