Mail Archives: djgpp/1997/06/15/22:32:45
Juanjo Erauskin wrote:
>
> How I detect in Win95, if I am in full screen console or window
> console
i do not know how to detect console vs full-screen, but you can detect
the windows version by using the following function:
#include <dpmi.h>
int windows_version(void)
{
_go32_dpmi_registers regs;
memset(®s, 0, sizeof(regs));
regs.x.ax = 0x1600;
_go32_dpmi_simulate_int(0x2F, ®s);
return regs.h.al;
}
it will return 4 for win 95, 3 for win 3.x. for more details, check out
ralph brown's interrupt list.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -