#include <windows.h>
#include <stdio.h>
#include <wchar.h>
+#include "resource.h"
#define NDEBUG
#include <debug.h>
SYSTEM_INFO inf;
MEMORYSTATUS stat;
+
GlobalMemoryStatus(&stat);
if (stat.dwLength != sizeof(MEMORYSTATUS)) {
printf("WARNING: GlobalMemoryStatus() returned unknown structure version, size %ld, expected %d.\n", stat.dwLength, sizeof(stat));
//SetLastError();
return FALSE;
}
+
}
GetSystemInfo(&inf);
ULONG i;
BOOL vdmStarted = FALSE;
- WCHAR WelcomeMsg[] = L"ReactOS Virtual DOS Machine support.\n";
- WCHAR PromptMsg[] = L"Type r<cr> to run, s<cr> to shutdown or q<cr> to quit now.";
+ TCHAR WelcomeMsg[RC_STRING_MAX_SIZE];
+ TCHAR PromptMsg[RC_STRING_MAX_SIZE];
CHAR InputBuffer[255];
-
+
+ LoadString( GetModuleHandle(NULL), STRING_WelcomeMsg, WelcomeMsg,sizeof(WelcomeMsg));
+ LoadString( GetModuleHandle(NULL), STRING_PromptMsg, PromptMsg ,sizeof(PromptMsg));
+
AllocConsole();
SetConsoleTitleW(L"ntvdm");