[BASESRV]
[reactos.git] / subsystems / win / basesrv / vdm.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Base API Server DLL
4 * FILE: subsystems/win/basesrv/vdm.h
5 * PURPOSE: VDM Definitions
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9 #ifndef __VDM_H__
10 #define __VDM_H__
11
12 #include <win/vdm.h>
13
14 /* DEFINITIONS ****************************************************************/
15
16 #define VDM_POLICY_KEY_NAME L"Software\\Policies\\Microsoft\\Windows\\AppCompat"
17 #define VDM_DISALLOWED_VALUE_NAME L"VDMDisallowed"
18
19 typedef struct _VDM_CONSOLE_RECORD
20 {
21 LIST_ENTRY Entry;
22 HANDLE ConsoleHandle;
23 HANDLE ProcessHandle;
24 HANDLE ServerEvent;
25 HANDLE ClientEvent;
26 ULONG ReenterCount;
27 PCHAR CurrentDirs;
28 ULONG CurDirsLength;
29 ULONG SessionId;
30 LIST_ENTRY DosListHead;
31 // TODO: Structure incomplete!!!
32 } VDM_CONSOLE_RECORD, *PVDM_CONSOLE_RECORD;
33
34 typedef struct _VDM_DOS_RECORD
35 {
36 LIST_ENTRY Entry;
37 USHORT State;
38 ULONG ExitCode;
39 HANDLE ServerEvent;
40 HANDLE ClientEvent;
41 PVDM_COMMAND_INFO CommandInfo;
42 // TODO: Structure incomplete!!!
43 } VDM_DOS_RECORD, *PVDM_DOS_RECORD;
44
45 /* FUNCTIONS ******************************************************************/
46
47 NTSTATUS NTAPI BaseSrvGetConsoleRecord(HANDLE ConsoleHandle, PVDM_CONSOLE_RECORD *Record);
48 VOID NTAPI BaseInitializeVDM(VOID);
49
50 #endif // __VDM_H__