mirror of
https://github.com/reactos/reactos.git
synced 2024-10-25 07:26:45 +00:00
87f3265217
svn path=/branches/shell-experiments/; revision=64718
72 lines
1.5 KiB
C
72 lines
1.5 KiB
C
/*
|
|
* 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>
|
|
*/
|
|
|
|
#ifndef _NTVDM_H_
|
|
#define _NTVDM_H_
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <conio.h>
|
|
#include <wchar.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <wingdi.h>
|
|
#include <wincon.h>
|
|
#include <winnls.h>
|
|
#include <winreg.h>
|
|
#include <winuser.h>
|
|
#include <subsys/win/vdm.h>
|
|
|
|
#include <vddsvc.h>
|
|
|
|
DWORD WINAPI SetLastConsoleEventActive(VOID);
|
|
|
|
#include <debug.h>
|
|
|
|
/*
|
|
* Activate this line if you want to run NTVDM in standalone mode with:
|
|
* ntvdm.exe <program>
|
|
*/
|
|
// #define STANDALONE
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
#ifndef STANDALONE
|
|
extern BOOLEAN AcceptCommands;
|
|
extern HANDLE CommandThread;
|
|
extern ULONG SessionId;
|
|
#endif
|
|
|
|
extern HANDLE VdmTaskEvent;
|
|
|
|
// Command line of NTVDM
|
|
extern INT NtVdmArgc;
|
|
extern WCHAR** NtVdmArgv;
|
|
|
|
|
|
/*
|
|
* Interface functions
|
|
*/
|
|
VOID DisplayMessage(LPCWSTR Format, ...);
|
|
|
|
/*static*/ VOID
|
|
CreateVdmMenu(HANDLE ConOutHandle);
|
|
/*static*/ VOID
|
|
DestroyVdmMenu(VOID);
|
|
|
|
VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
|
|
VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
|
|
|
|
#endif // _NTVDM_H_
|
|
|
|
/* EOF */
|