2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
4 * FILE: subsystems/mvdm/ntvdm/dos/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)
16 /* INCLUDES *******************************************************************/
18 #include "dos32krnl/dos.h"
20 /* DEFINES ********************************************************************/
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)
28 /* VARIABLES ******************************************************************/
30 /* FUNCTIONS ******************************************************************/
32 VOID
BiosCharPrint(CHAR Character
);
33 #define BiosDisplayMessage(Format, ...) \
34 PrintMessageAnsi(BiosCharPrint, (Format), ##__VA_ARGS__)
36 VOID
DosCharPrint(CHAR Character
);
37 #define DosDisplayMessage(Format, ...) \
38 PrintMessageAnsi(DosCharPrint, (Format), ##__VA_ARGS__)
41 BOOLEAN
DosShutdown(BOOLEAN Immediate
);
43 DWORD
DosStartProcess32(IN LPCSTR ExecutablePath
,
44 IN LPCSTR CommandLine
,
45 IN LPCSTR Environment OPTIONAL
,
46 IN DWORD ReturnAddress OPTIONAL
,
47 IN BOOLEAN StartComSpec
);
69 OUT PVOID lpFindFileData
,
78 OUT PVOID lpFindFileData
83 demGetPhysicalDriveType
98 demSetCurrentDirectoryGetDrive
100 IN LPCSTR CurrentDirectory
,
101 OUT PUCHAR DriveNumber