www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/04/03/02:47:01

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Tue, 03 Apr 2007 01:32:49 -0500
Date: Mon, 02 Apr 2007 23:32:47 -0700
From: Jim Michaels <NOSPAMFOR-jmichae3- AT yahoo DOT com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cwsdpmi "protected mode not availible" on win2k, stub don't work
References: <M_adneBPhb4hK5PbnZ2dnUVZ_qupnZ2d AT comcast DOT com> <4610253F DOT 18094 DOT 166783AF AT gerritvn DOT gpvno DOT co DOT za> <tJCdnUJdB6ZZDo3bnZ2dnUVZ_uygnZ2d AT comcast DOT com> <200704020626 DOT l326Q3qV021058 AT envy DOT delorie DOT com>
In-Reply-To: <200704020626.l326Q3qV021058@envy.delorie.com>
Message-ID: <Q56dndeKWvSMaIzbnZ2dnUVZ_qmpnZ2d@comcast.com>
Lines: 31
NNTP-Posting-Host: 24.20.110.103
X-Trace: sv3-fD1uBaOb49067TNjgP0qmyuzbPMqMPQZ+lFAcnbgQhyZengIA4BjBtRBG3VOo4FvXLUsqTF7vXvHuWT!QxfNJLrVs/VDqFumCwAvWF9Bv1Oz1ZsLASIrd8nuec06fZERNzGMQYuc6NsxxwpIYnlxsZPP6Ngu!8LJtfF+QQHaOpNZZ5v8WOtchZg4WOw==
X-Complaints-To: abuse AT comcast DOT net
X-DMCA-Complaints-To: dmca AT comcast DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.34
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

DJ Delorie wrote:
>> I'm using only the latest binaries from the 2.03 compiler set of DJGPP.
> 
> Look in pub/djgpp/beta, which is the pre-release for 2.04
> 
>> I'm looking at the generated EXE code by gxx and gcc and they both
>> have this at the top close to somewhere after the MZ signature of a
>> standard EXE:
> 
> That's the standard 2kb stub loader, the code that gets your program
> into 32-bit mode.  It talks to DPMI, and knows how to load CWSDPI if
> no DPMI server is present, but does not *require* CWSDPMI.
> 
>> The application calls BIOS.H's biosdisk(): under windows XP the
>> application causes Windows to throw the message: 16-bit MSDOS
>> Subsystem: An application has attempted to directly access the hard
>> disk, which cannot be supported.
> 
> Sounds like XP is doing the right thing, by protecting the OS from
> rogue programs trying to corrupt the hard drive.

great. I just want to read and save the partition boot & MBR sectors for 
archival purposes. :-(
I thought it would be be handy for certain operations of system rebuilding.

looks like I go back to DOS floppies.  I found an API call that might do 
the trick, but I would have to know ATA commands, and the PDF for that 
is huge.

Does DJGPP have any other direct disk I/O API than biosdisk()/bios.h? 
My guess is no.

- Raw text -


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