TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Paul Edwards
date: 1995-03-11 09:35:32
subject: osmode

MB> This has significance only in 16-bit programs and is set in the startup 
MB> code by a call to DosGetMachineMode(), which exists only in the 16-bit OS/2 
MB> API. Obviously, if your 32-bit OS/2 program is running, you are in 
MB> protected mode.

MB> The only real purpose for _osmode is in bound programs written mostly to 
MB> the Family API.  By checking _osmode, you can use certain features only 
MB> accessible in one mode or the other, or which have to be done differently 
MB> depending upon mode.  For example, if you wanted a FAPI program to be 

Thanks for this info, that was what I was after - osmode is only
relevant for 16-bit.  So I have now #ifdef'd my way around that 
code so that when I'm in 32-bit I don't do it.  BFN.  Paul.
@EOT:

---
* Origin: This is just another kludge line like SEENBY (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.