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
55 /* FUNCTIONS ******************************************************************/
58 extern BOOLEAN AcceptCommands
;
59 extern HANDLE CommandThread
;
60 extern ULONG SessionId
;
63 extern HANDLE VdmTaskEvent
;
65 // Command line of NTVDM
67 extern WCHAR
** NtVdmArgv
;
73 VOID
DisplayMessage(LPCWSTR Format
, ...);
76 CreateVdmMenu(HANDLE ConOutHandle
);
80 BOOL
ConsoleAttach(VOID
);
81 VOID
ConsoleDetach(VOID
);
82 VOID
MenuEventHandler(PMENU_EVENT_RECORD MenuEvent
);
83 VOID
FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent
);