2013-06-17 00:00:36 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: GPL - See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Virtual DOS Machine
|
|
|
|
* FILE: ntvdm.h
|
|
|
|
* PURPOSE: Header file to define commonly used stuff
|
|
|
|
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
|
|
|
|
*/
|
|
|
|
|
2013-06-26 22:58:41 +00:00
|
|
|
#ifndef _NTVDM_H_
|
|
|
|
#define _NTVDM_H_
|
|
|
|
|
2013-06-17 00:00:36 +00:00
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
2014-05-02 22:23:34 +00:00
|
|
|
#include <wchar.h>
|
2013-10-27 14:17:34 +00:00
|
|
|
|
2015-04-19 00:01:03 +00:00
|
|
|
/* PSDK/NDK Headers */
|
2013-11-03 20:31:19 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2013-11-16 23:11:54 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <wincon.h>
|
|
|
|
#include <winnls.h>
|
2013-12-23 18:17:29 +00:00
|
|
|
#include <winreg.h>
|
2013-11-16 23:11:54 +00:00
|
|
|
#include <winuser.h>
|
2014-04-08 00:28:49 +00:00
|
|
|
#include <subsys/win/vdm.h>
|
2013-10-27 14:17:34 +00:00
|
|
|
|
2015-05-11 23:04:24 +00:00
|
|
|
// Do not include stuff that is only defined
|
|
|
|
// for backwards compatibility in nt_vdd.h
|
|
|
|
#define NO_NTVDD_COMPAT
|
2013-12-24 15:30:59 +00:00
|
|
|
#include <vddsvc.h>
|
2013-12-23 18:17:29 +00:00
|
|
|
|
2014-05-11 19:25:09 +00:00
|
|
|
DWORD WINAPI SetLastConsoleEventActive(VOID);
|
|
|
|
|
2015-04-19 00:01:03 +00:00
|
|
|
#define NTOS_MODE_USER
|
|
|
|
#include <ndk/kefuncs.h>
|
2015-05-14 21:13:07 +00:00
|
|
|
#include <ndk/mmfuncs.h>
|
2015-04-19 00:01:03 +00:00
|
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
#include <ndk/rtltypes.h>
|
|
|
|
|
|
|
|
/* PSEH for SEH Support */
|
|
|
|
#include <pseh/pseh2.h>
|
|
|
|
|
2013-06-22 01:41:51 +00:00
|
|
|
#include <debug.h>
|
2013-06-17 00:00:36 +00:00
|
|
|
|
2014-05-11 19:25:09 +00:00
|
|
|
/*
|
|
|
|
* Activate this line if you want to run NTVDM in standalone mode with:
|
|
|
|
* ntvdm.exe <program>
|
|
|
|
*/
|
2014-05-11 19:26:17 +00:00
|
|
|
// #define STANDALONE
|
2014-04-22 20:46:50 +00:00
|
|
|
|
2015-03-13 23:26:33 +00:00
|
|
|
/*
|
|
|
|
* Activate this line for Win2k compliancy
|
|
|
|
*/
|
2015-05-11 23:10:00 +00:00
|
|
|
// #define WIN2K_COMPLIANT
|
2015-03-13 23:26:33 +00:00
|
|
|
|
2015-05-07 23:11:32 +00:00
|
|
|
/*
|
|
|
|
* Activate this line if you want advanced hardcoded debug facilities
|
|
|
|
* (called interrupts, etc...), that break PC-AT compatibility.
|
|
|
|
* USE AT YOUR OWN RISK! (disabled by default)
|
|
|
|
*/
|
|
|
|
// #define ADVANCED_DEBUGGING
|
|
|
|
|
2013-06-17 00:00:36 +00:00
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
|
2014-05-02 18:24:40 +00:00
|
|
|
extern HANDLE VdmTaskEvent;
|
|
|
|
|
2014-10-04 13:36:17 +00:00
|
|
|
// Command line of NTVDM
|
|
|
|
extern INT NtVdmArgc;
|
|
|
|
extern WCHAR** NtVdmArgv;
|
|
|
|
|
|
|
|
|
2014-09-16 00:51:15 +00:00
|
|
|
/*
|
|
|
|
* Interface functions
|
|
|
|
*/
|
2015-07-13 01:21:46 +00:00
|
|
|
VOID DisplayMessage(IN LPCWSTR Format, ...);
|
2013-06-26 22:58:41 +00:00
|
|
|
|
2014-09-14 00:43:43 +00:00
|
|
|
/*static*/ VOID
|
|
|
|
CreateVdmMenu(HANDLE ConOutHandle);
|
|
|
|
/*static*/ VOID
|
|
|
|
DestroyVdmMenu(VOID);
|
|
|
|
|
2015-03-31 21:28:40 +00:00
|
|
|
BOOL ConsoleAttach(VOID);
|
|
|
|
VOID ConsoleDetach(VOID);
|
2014-09-16 00:51:15 +00:00
|
|
|
VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
|
|
|
|
VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
|
|
|
|
|
2013-08-09 18:55:35 +00:00
|
|
|
#endif // _NTVDM_H_
|
2013-06-17 00:00:36 +00:00
|
|
|
|
|
|
|
/* EOF */
|