[NTVDM]
[reactos.git] / subsystems / ntvdm / ntvdm.h
index 7e71e2b..f343548 100644 (file)
 /* INCLUDES *******************************************************************/
 
 #include <windows.h>
-#include <tchar.h>
 #include <stdio.h>
 #include <conio.h>
 #include <stdarg.h>
-
-#define NDEBUG
 #include <debug.h>
+#include <limits.h>
 
 /* DEFINES ********************************************************************/
 
@@ -26,6 +24,7 @@
 #define MAX_SEGMENT 0xFFFF
 #define MAX_OFFSET 0xFFFF
 #define MAX_ADDRESS TO_LINEAR(MAX_SEGMENT, MAX_OFFSET)
+#define FAR_POINTER(x) ((ULONG_PTR)BaseAddress + TO_LINEAR(HIWORD(x), LOWORD(x)))
 #define STEPS_PER_CYCLE 256
 
 /* FUNCTIONS ******************************************************************/
@@ -36,6 +35,6 @@ extern LPCWSTR ExceptionName[];
 
 VOID DisplayMessage(LPCWSTR Format, ...);
 
-#endif
+#endif // _NTVDM_H_
 
 /* EOF */