3 * Code to detect the surrounding DOS/Windows environment and support routines to work with it
4 * (C) 2009-2012 Jonathan Campbell.
5 * Hackipedia DOS library.
7 * This code is licensed under the LGPL.
8 * <insert LGPL legal text here>
16 #include <conio.h> /* this is where Open Watcom hides the outp() etc. functions */
26 #include <hw/cpu/cpu.h>
27 #include <hw/dos/dos.h>
28 #include <hw/dos/doswin.h>
29 #include <hw/dos/dosntvdm.h>
31 #if defined(TARGET_MSDOS) && !defined(TARGET_WINDOWS) && !defined(TARGET_OS2)
32 /* Windows 9x/NT Close-awareness */
33 void dos_close_awareness_cancel() {
42 void dos_close_awareness_ack() {
51 int dos_close_awareness_enable(unsigned char en) {
54 en = (en != 0) ? 1 : 0;
68 int dos_close_awareness_query() {
85 int dos_close_awareness_available() {
86 /* "close-awareness" is provided by Windows */
87 return (windows_mode == WINDOWS_ENHANCED || windows_mode == WINDOWS_NT);
92 mov ax,0x1680 /* RELEASE VM TIME SLICE */
93 xor bx,bx /* THIS VM */