| www.delorie.com/archives/browse.cgi | search |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| Newsgroups: | comp.os.msdos.djgpp,comp.os.msdos.programmer |
| Subject: | Re: Detecting Windows and Windows directory from DOS |
| Date: | Fri, 17 Mar 2000 10:41:14 +0200 |
| Organization: | NetVision Israel |
| Lines: | 21 |
| Message-ID: | <38D1EFAA.7A48D29D@is.elta.co.il> |
| 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> |
| NNTP-Posting-Host: | ras1-p28.rvt.netvision.net.il |
| Mime-Version: | 1.0 |
| X-Trace: | news.netvision.net.il 953282379 14678 62.0.172.30 (17 Mar 2000 08:39:39 GMT) |
| X-Complaints-To: | abuse AT netvision DOT net DOT il |
| NNTP-Posting-Date: | 17 Mar 2000 08:39:39 GMT |
| X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
| X-Accept-Language: | en,ru,hebrew |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Damian Yerrick wrote: > > >All right. How do I read the Windows registry from a DOS program (if it's > >possible)? > > That's what I've been wondering. 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. There's a library compatible with DJGPP (called regdos or something) which can do that. Look it up. > Why doesn't it just store its registry as text like GNU/Linux does? Because Microsoft never meant for applications to access this information. They wanted to make it harder than the venerable *.ini files in older Windows versions (which *was* text files, btw). The above book explains this as well.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |