[NTVDM]: Commit some local changes that can be committed now:
[reactos.git] / reactos / subsystems / mvdm / ntvdm / ntvdm.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: ntvdm.h
5 * PURPOSE: Header file to define commonly used stuff
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9 #ifndef _NTVDM_H_
10 #define _NTVDM_H_
11
12 /* INCLUDES *******************************************************************/
13
14 #include <stdio.h>
15 #include <stdarg.h>
16 #include <wchar.h>
17
18 /* PSDK/NDK Headers */
19 #define WIN32_NO_STATUS
20 #include <windef.h>
21 #include <winbase.h>
22 #include <wingdi.h>
23 #include <wincon.h>
24 #include <winnls.h>
25 #include <winreg.h>
26 #include <winuser.h>
27 #include <subsys/win/vdm.h>
28
29 // Do not include stuff that is only defined
30 // for backwards compatibility in nt_vdd.h
31 #define NO_NTVDD_COMPAT
32 #include <vddsvc.h>
33
34 DWORD WINAPI SetLastConsoleEventActive(VOID);
35
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>
42
43 /* PSEH for SEH Support */
44 #include <pseh/pseh2.h>
45
46 #include <debug.h>
47
48 /*
49 * Activate this line if you want to run NTVDM in standalone mode with:
50 * ntvdm.exe <program>
51 */
52 // #define STANDALONE
53
54 /*
55 * Activate this line for Win2k compliancy
56 */
57 // #define WIN2K_COMPLIANT
58
59 /*
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)
63 */
64 // #define ADVANCED_DEBUGGING
65
66 /* FUNCTIONS ******************************************************************/
67
68 extern HANDLE VdmTaskEvent;
69
70 // Command line of NTVDM
71 extern INT NtVdmArgc;
72 extern WCHAR** NtVdmArgv;
73
74
75 /*
76 * Interface functions
77 */
78 VOID DisplayMessage(IN LPCWSTR Format, ...);
79
80 /*static*/ VOID
81 CreateVdmMenu(HANDLE ConOutHandle);
82 /*static*/ VOID
83 DestroyVdmMenu(VOID);
84
85 BOOL ConsoleAttach(VOID);
86 VOID ConsoleDetach(VOID);
87 VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
88 VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
89
90 #endif // _NTVDM_H_
91
92 /* EOF */