X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: What other DPMI hosts work with DJGPP? Date: Thu, 10 Apr 2014 20:19:08 -0400 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: References: NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Bytes: 2462 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 08 Apr 2014 04:25:46 -0400, Martin Str|mberg wrote: > In comp.os.msdos.djgpp Rod Pemberton > wrote: >> So, I have code to prevent the app from starting when CWSDPMI >> or CWSDPR0 is *not* the DPMI client. This is to just prevent >> PMODEDJ. But, I really don't want to prevent the app from >> working with other DJGPP compatible DPMI hosts. So, I'm >> trying to find out if I should allow any other clients and >> just which clients they are. > > Hmm... Why not use a blacklist in stead of a whitelist? > > Then if somebody says SOME_DPMI_SERVER doesn't work, you add > that one to the blacklist? > Sorry for the delay, I really wasn't quite sure how to reply to this. There are *SO* many issues and aspects. If I hadn't waited, I would've had like ten different replies ... Information provided from the DPMI client about the DPMI client is somewhat limited, more so for pure DPMI 0.9 clients. DPMI 1.0 clients or DPMI 0.9 clients which support DPMI 0401H "Get DPMI Capabilities" return the name of the client and so they're easily identified. But, DPMI 0.9 only clients aren't so easily identified. They only support DPMI 0400H "Get DPMI Version" which returns version numbers, but not the name of the client. So, I'm doing the best I can with what I can determine from DPMI calls. Personally, I have no real preference either way as to a blacklist or whitelist. I just like to prevent PMODEDJ (and other common non-nestable clients), while allowing nestable clients. Rod Pemberton