X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <3FE199FF.9060708@lml.ls.fi.upm.es> Date: Thu, 18 Dec 2003 13:13:51 +0100 From: Manuel Collado User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Detecting system features References: <3FE06890 DOT 6060006 AT lml DOT ls DOT fi DOT upm DOT es> <9003-Wed17Dec2003201922+0200-eliz AT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 138.100.10.20 X-Trace: 18 Dec 2003 13:13:48 +0100, 138.100.10.20 Lines: 52 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: >>Date: Wed, 17 Dec 2003 15:30:40 +0100 >>From: Manuel Collado >>Newsgroups: comp.os.msdos.djgpp >> >>I would like to know if it is possible from a DJGPP program to detect >>(and how) important features of the running system, like these: >> >>1. DPMI services (perhaps impossible from inside DJGPP?) ^^^^^^^^^^^ > > If the DJGPP program runs, DPMI services _must_ be there. That's what I assumed. > >>2. LFN support (I'm aware of _use_lfn. Any more?) > > What's wrong with _use_lfn? If you have specific problems with it, > please ask specific questions. Please see below. > >>3. Can run Win32 executables - or which OS is it > > We have _osmajor and _osminor for that. Thanks for this pointer. Can they effectively discriminate among the different Windows flavors? (WinNT/Win2K/WinXP ...) Now the rationale for the questions: I'm considering to develop a global DJGPP install utility. Not meant to replace 'pakke', but to help new users to set up a working DJGPP system from scratch. So I would like to automatically detect missing system features, like DPMI or LNF support. This way the required basic utilities (csdpmi, ntlfn..) could be included without harming the user with esoteric questions. Please consider that the first part of the installer will be executed in the bare target machine, not in a full working DJGPP environment. I also asked about detecting internet services, because I plan to use a Win32 version of the 'wget' utility (the same used by pakke) to download the required archives during the installation process. Regards, -- To reply by e-mail, please remove the extra dot in the given address: m.collado -> mcollado