[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 <conio.h>
17 #include <wchar.h>
18
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 #include <debug.h>
34
35 /*
36 * Activate this line if you want to run NTVDM in standalone mode with:
37 * ntvdm.exe <program>
38 */
39 // #define STANDALONE
40
41 /*
42 * Activate this line for Win2k compliancy
43 */
44 // #define WIN2K_COMPLIANT
45
46 /* FUNCTIONS ******************************************************************/
47
48 #ifndef STANDALONE
49 extern BOOLEAN AcceptCommands;
50 extern HANDLE CommandThread;
51 extern ULONG SessionId;
52 #endif
53
54 extern HANDLE VdmTaskEvent;
55
56 // Command line of NTVDM
57 extern INT NtVdmArgc;
58 extern WCHAR** NtVdmArgv;
59
60
61 /*
62 * Interface functions
63 */
64 VOID DisplayMessage(LPCWSTR Format, ...);
65
66 /*static*/ VOID
67 CreateVdmMenu(HANDLE ConOutHandle);
68 /*static*/ VOID
69 DestroyVdmMenu(VOID);
70
71 BOOL ConsoleAttach(VOID);
72 VOID ConsoleDetach(VOID);
73 VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
74 VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
75
76 #endif // _NTVDM_H_
77
78 /* EOF */