delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/11/17:10:49

Message-Id: <199701112142.WAA16325@math.amu.edu.pl>
Comments: Authenticated sender is <grendel AT ananke DOT amu DOT edu DOT pl>
From: "Mark Habersack" <grendel AT ananke DOT amu DOT edu DOT pl>
Organization: What? (Poznan, Poland)
To: Serge Golovin <res AT marstu DOT mari DOT su>
Date: Sat, 11 Jan 1997 22:45:58 +0100
MIME-Version: 1.0
Subject: Re: DOS application under Windows
Reply-to: grendel AT ananke DOT amu DOT edu DOT pl
CC: djgpp AT delorie DOT com (DJGPP Mailing List)

Once upon a time (on 11 Jan 97 at 16:14) Serge Golovin said:

> > Don't remember it off the top of my head, but browse Ralph Brown's
> > Interrupt list for the Int2Fh entries. You will find there all you
> > need - detection of windoze and all the call-backs DOS application
> > can install using the Int2Fh interface.
> It would be helpful for you to get Andrew Schulman's "Unauthorized
> Windows 95" too. -- SerGo, aka RES
There's no need to do that in this case - Ralph's Interrupt List has 
all the answers:

--------------------
Interrupt Helper v1.0               W-2F1684BX0750

INT 2F - MS Windows - VSWITCHD - GET DEVICE API ENTRY POINT
	AX = 1684h
	BX = 0750h (virtual device ID for VSWITCHD device) (see #1921)
	ES:DI = 0000h:0000h
Return: ES:DI -> VxD API entry point (see #1935)
		  0000h:0000h if the VxD does not support an API

(Table 1935)
Call VSWITCHD entry point with:
	AX = function
	    0000h toggle windowed mode (simulate Alt-Enter keypress)
		Return: nothing
	    0001h get windowed mode
		Return: CF clear if VM is windowed
			CF set if VM is full-screen

----------------

INT 2F - MS Windows - WINDOWS ENHANCED MODE INSTALLATION CHECK
	AX = 1600h
Return: AL = status
	    00h neither Windows 3.x enhanced mode nor Windows/386 2.x 
running
	    01h Windows/386 2.x running
	    80h XMS version 1 driver installed (neither Windows 3.x enhanced
		  mode nor Windows/386 2.x running) (obsolete--see note)
	    FFh Windows/386 2.x running
	AL = anything else
	    AL = Windows major version number >= 3
	    AH = Windows minor version number
Notes:	INT 2F/AH=16h comprises an API for non-Windows programs (DOS 
device drivers, TSRs, and applications) to cooperate with multitasking
Windows/386 2.x and Windows 3.x and higher enhanced mode.
Certain calls are also supported in the Microsoft 80286 DOS extender in
Windows standard mode this function served as the installation check 
and AX=1610h served to get the driver entry point for XMS version 1, which is now 
obsolete.  Use AX=4300h and AX=4310h instead

SeeAlso: AX=160Ah,AX=1610h,AX=4300h,AX=4680h
Index:	installation check;XMS version 1

=================================================
How much longer can I howl into this wind?
How much longer can I cry like this?
A thousand wasted hours a day just to feel my heart
   for a second... A thousand hours just thrown away
Just to feel my heart for a second
----
Visit http://ananke.amu.edu.pl/~grendel

- Raw text -


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