62 WCHAR szMenuString[256];
117 for (
i = 0;
i <= MenuPos;
i++)
132 WCHAR szMenuString[256];
151 WCHAR szNoMedia[100];
152 WCHAR szMenuString1[256], szMenuString2[256];
209 WCHAR szNoMedia[100];
210 WCHAR szMenuString1[256], szMenuString2[256];
338 ConInMode &= ~ENABLE_MOUSE_INPUT;
366 DPRINT1(
"NTVDM delayed killing in the CTRL_LAST_CLOSE_EVENT CtrlHandler!\n");
374 DPRINT1(
"Killing NTVDM in the 'default' CtrlHandler!\n");
406 wprintf(
L"FATAL: Cannot save console in/out modes\n");
469 wprintf(
L"FATAL: Cannot retrieve a handle to the console input\n");
484 wprintf(
L"FATAL: Cannot retrieve a handle to the console output\n");
591 DPRINT1(
"Killing NTVDM via console menu!\n");
#define INVALID_HANDLE_VALUE
HMENU WINAPI DECLSPEC_HOTPATCH ConsoleMenuControl(HANDLE hConsoleOutput, DWORD dwCmdIdLow, DWORD dwCmdIdHigh)
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
INT WINAPI DECLSPEC_HOTPATCH ShowConsoleCursor(HANDLE hConsoleOutput, BOOL bShow)
DWORD WINAPI SetLastConsoleEventActive(VOID)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler(PHANDLER_ROUTINE HandlerRoutine, BOOL Add)
HWND WINAPI DECLSPEC_HOTPATCH GetConsoleWindow(VOID)
DWORD WINAPI GetFileType(HANDLE hFile)
VOID DumpMemory(BOOLEAN TextFormat)
VOID EjectFloppy(IN ULONG DiskNumber)
VOID MountFloppy(IN ULONG DiskNumber)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
unsigned __int3264 UINT_PTR
#define UNREFERENCED_PARAMETER(P)
NTVDM_SETTINGS GlobalSettings
#define IsConsoleHandle(h)
UNICODE_STRING FloppyDisks[2]
static VOID AppendMenuItems(HMENU hMenu, const VDM_MENUITEM *Items)
VOID UpdateVdmMenuDisks(VOID)
struct _VDM_MENUITEM * PVDM_MENUITEM
struct _VDM_MENUITEM VDM_MENUITEM
VOID VdmShutdown(BOOLEAN Immediate)
static BOOL VdmMenuExists(HMENU hConsoleMenu)
static VOID UpdateVdmMenuMouse(VOID)
static DWORD OrgConsoleOutputMode
static VOID DestroyVdmMenu(VOID)
static VOID ConsoleCleanup(VOID)
static HANDLE CurrentConsoleOutput
static VOID CreateVdmMenu(HANDLE ConOutHandle)
VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent)
VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent)
static HMENU hConsoleMenu
static VOID ConsoleInitUI(VOID)
static VOID EnableExtraHardware(HANDLE ConsoleInput)
static BOOL WINAPI ConsoleCtrlHandler(DWORD ControlType)
static HANDLE ConsoleOutput
static BOOL ConsoleInit(VOID)
static const VDM_MENUITEM VdmMainMenuItems[]
static VOID CaptureMousePointer(HANDLE ConOutHandle, BOOLEAN Capture)
VOID ConsoleReattach(HANDLE ConOutHandle)
static DWORD OrgConsoleInputMode
static VOID UpdateVdmMenu(VOID)
static const VDM_MENUITEM VdmMenuItems[]
static VOID ConsoleCleanupUI(VOID)
#define IDS_RELEASE_MOUSE
#define IDS_VDM_EJECT_FLOPPY
#define ID_VDM_DUMPMEM_BIN
#define IDS_CAPTURE_MOUSE
#define IDS_VDM_DUMPMEM_TXT
#define IDS_VDM_MOUNT_FLOPPY
#define IDS_VDM_DUMPMEM_BIN
#define ID_VDM_DUMPMEM_TXT
#define ENABLE_MOUSE_INPUT
#define CTRL_LAST_CLOSE_EVENT
#define ENABLE_WINDOW_INPUT
HMENU WINAPI CreatePopupMenu(void)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
BOOL WINAPI InsertMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
BOOL WINAPI ClipCursor(_In_opt_ LPCRECT)
BOOL WINAPI DeleteMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
UINT WINAPI GetMenuItemID(_In_ HMENU, _In_ int)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI DrawMenuBar(_In_ HWND)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI ModifyMenuW(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI AppendMenuW(_In_ HMENU, _In_ UINT, _In_ UINT_PTR, _In_opt_ LPCWSTR)