2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
5 * PURPOSE: Header file to define commonly used stuff
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
12 /* INCLUDES *******************************************************************/
18 /* PSDK/NDK Headers */
19 #define WIN32_NO_STATUS
27 #include <subsys/win/vdm.h>
29 // Do not include stuff that is only defined
30 // for backwards compatibility in nt_vdd.h
31 #define NO_NTVDD_COMPAT
34 DWORD WINAPI
SetLastConsoleEventActive(VOID
);
36 #define NTOS_MODE_USER
37 #include <ndk/kefuncs.h>
38 #include <ndk/mmfuncs.h>
39 #include <ndk/obfuncs.h>
40 #include <ndk/rtlfuncs.h>
41 #include <ndk/rtltypes.h>
43 /* PSEH for SEH Support */
44 #include <pseh/pseh2.h>
49 * Activate this line if you want to run NTVDM in standalone mode with:
55 * Activate this line for Win2k compliancy
57 // #define WIN2K_COMPLIANT
60 * Activate this line if you want advanced hardcoded debug facilities
61 * (called interrupts, etc...), that break PC-AT compatibility.
62 * USE AT YOUR OWN RISK! (disabled by default)
64 // #define ADVANCED_DEBUGGING
66 #ifdef ADVANCED_DEBUGGING
67 #define ADVANCED_DEBUGGING_LEVEL 1
70 /* FUNCTIONS ******************************************************************/
72 // Command line of NTVDM
74 extern WCHAR
** NtVdmArgv
;
80 VOID
DisplayMessage(IN LPCWSTR Format
, ...);
83 CreateVdmMenu(HANDLE ConOutHandle
);
87 BOOL
ConsoleAttach(VOID
);
88 VOID
ConsoleDetach(VOID
);
89 VOID
MenuEventHandler(PMENU_EVENT_RECORD MenuEvent
);
90 VOID
FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent
);