[NTVDM]
[reactos.git] / reactos / subsystems / mvdm / ntvdm / dos / dem.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: dem.h
5 * PURPOSE: DOS 32-bit Emulation Support Library -
6 * This library is used by the built-in NTVDM DOS32 and by
7 * the NT 16-bit DOS in Windows (via BOPs). It also exposes
8 * exported functions that can be used by VDDs.
9 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
10 * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
11 */
12
13 #ifndef _DEM_H_
14 #define _DEM_H_
15
16 /* INCLUDES *******************************************************************/
17
18 #include "dos32krnl/dos.h"
19
20 /* DEFINES ********************************************************************/
21
22 /* BOP Identifiers */
23 #define BOP_LOAD_DOS 0x2B // DOS Loading and Initializing BOP. In parameter (following bytes) we take a NULL-terminated string indicating the name of the DOS kernel file.
24 #define BOP_START_DOS 0x2C // DOS Starting BOP. In parameter (following bytes) we take a NULL-terminated string indicating the name of the DOS kernel file.
25 #define BOP_DOS 0x50 // DOS System BOP (for NTIO.SYS and NTDOS.SYS)
26 #define BOP_CMD 0x54 // DOS Command Interpreter BOP (for COMMAND.COM)
27
28 /* FUNCTIONS ******************************************************************/
29
30 DWORD
31 WINAPI
32 demClientErrorEx
33 (
34 IN HANDLE FileHandle,
35 IN CHAR Unknown,
36 IN BOOL Flag
37 );
38
39 DWORD
40 WINAPI
41 demFileDelete
42 (
43 IN LPCSTR FileName
44 );
45
46 DWORD
47 WINAPI
48 demFileFindFirst
49 (
50 OUT PVOID lpFindFileData,
51 IN LPCSTR FileName,
52 IN WORD AttribMask
53 );
54
55 DWORD
56 WINAPI
57 demFileFindNext
58 (
59 OUT PVOID lpFindFileData
60 );
61
62 UCHAR
63 WINAPI
64 demGetPhysicalDriveType
65 (
66 IN UCHAR DriveNumber
67 );
68
69 BOOL
70 WINAPI
71 demIsShortPathName
72 (
73 IN LPCSTR Path,
74 IN BOOL Unknown
75 );
76
77 DWORD
78 WINAPI
79 demSetCurrentDirectoryGetDrive
80 (
81 IN LPCSTR CurrentDirectory,
82 OUT PUCHAR DriveNumber
83 );
84
85 #endif // _DEM_H_
86
87 /* EOF */