[NTVDM]
[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 #include <vddsvc.h>
30
31 DWORD WINAPI SetLastConsoleEventActive(VOID);
32
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>
38
39 /* PSEH for SEH Support */
40 #include <pseh/pseh2.h>
41
42 #include <debug.h>
43
44 /*
45 * Activate this line if you want to run NTVDM in standalone mode with:
46 * ntvdm.exe <program>
47 */
48 // #define STANDALONE
49
50 /*
51 * Activate this line for Win2k compliancy
52 */
53 // #define WIN2K_COMPLIANT
54
55 /* FUNCTIONS ******************************************************************/
56
57 extern HANDLE VdmTaskEvent;
58
59 // Command line of NTVDM
60 extern INT NtVdmArgc;
61 extern WCHAR** NtVdmArgv;
62
63
64 /*
65 * Interface functions
66 */
67 VOID DisplayMessage(LPCWSTR Format, ...);
68
69 /*static*/ VOID
70 CreateVdmMenu(HANDLE ConOutHandle);
71 /*static*/ VOID
72 DestroyVdmMenu(VOID);
73
74 BOOL ConsoleAttach(VOID);
75 VOID ConsoleDetach(VOID);
76 VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
77 VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
78
79 #endif // _NTVDM_H_
80
81 /* EOF */