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>
31 DWORD WINAPI
SetLastConsoleEventActive(VOID
);
33 #define NTOS_MODE_USER
34 #include <ndk/kefuncs.h>
35 #include <ndk/obfuncs.h>
36 #include <ndk/rtlfuncs.h>
37 #include <ndk/rtltypes.h>
39 /* PSEH for SEH Support */
40 #include <pseh/pseh2.h>
45 * Activate this line if you want to run NTVDM in standalone mode with:
51 * Activate this line for Win2k compliancy
53 // #define WIN2K_COMPLIANT
56 * Activate this line if you want advanced hardcoded debug facilities
57 * (called interrupts, etc...), that break PC-AT compatibility.
58 * USE AT YOUR OWN RISK! (disabled by default)
60 // #define ADVANCED_DEBUGGING
62 /* FUNCTIONS ******************************************************************/
64 extern HANDLE VdmTaskEvent
;
66 // Command line of NTVDM
68 extern WCHAR
** NtVdmArgv
;
74 VOID
DisplayMessage(LPCWSTR Format
, ...);
77 CreateVdmMenu(HANDLE ConOutHandle
);
81 BOOL
ConsoleAttach(VOID
);
82 VOID
ConsoleDetach(VOID
);
83 VOID
MenuEventHandler(PMENU_EVENT_RECORD MenuEvent
);
84 VOID
FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent
);