http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Windows from DOS



#include <stdlib.h>

if ( getenv(VER) >0x30a)
 // windows detected

I think this will work, if not you may have to call an interupt and get at VER
that way



Nitram28 wrote:

> hi all,
>
> how can I detect windows(if it is running) from DOS program(real mode). I
> think that there is some function of some interupt, which can give me such
> information, but I don't remember it exactly. If you know it (or you know
> another way to do this) write it to me please.
>
> NITRAM28
>
> =================================================================
> To SUBSCRIBE or UNSUBSCRIBE please visit
> http://gameprogrammer.com/mailinglist.html

=================================================================
To SUBSCRIBE or UNSUBSCRIBE please visit
http://gameprogrammer.com/mailinglist.html