vdos.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // Wengier: LFN, KEYBOARD and other support
  2. #ifndef VDOS_H
  3. #define VDOS_H
  4. #include "config.h"
  5. #include <io.h>
  6. #include <windows.h>
  7. #include "logging.h"
  8. void E_Exit(const char * message,...);
  9. extern char vDosVersion[];
  10. extern char vDosBuild[];
  11. extern bool do_debug;
  12. extern bool bkey;
  13. extern bool fflfn;
  14. extern bool DOS_BreakFlag;
  15. struct DOS_DateX {
  16. Bit16u year;
  17. Bit8u month;
  18. Bit8u day;
  19. Bit8u dayofweek;
  20. Bit8u hour;
  21. Bit8u minute;
  22. Bit8u second;
  23. Bit16u millisecond;
  24. };
  25. typedef struct {
  26. int x, y;
  27. } xyp;
  28. void RunPC();
  29. bool ConfGetBool(const char *name);
  30. int ConfGetInt(const char *name);
  31. char * ConfGetString(const char *name);
  32. void ConfAddError(char* desc, char* errLine);
  33. void vDos_Init(void);
  34. void INT2F_Cont(void);
  35. void showAboutMsg(void);
  36. extern HWND vDosHwnd;
  37. #define LENNAME 10 // Max length of name
  38. #define MAXNAMES 80 // Max number of names
  39. #define MAX_PATH_LEN 512 // Maximum filename size
  40. #define txtMaxCols 240
  41. #define txtMaxLins 60
  42. #define DOS_FILES 255
  43. extern char cfgname[MAXNAMES][LENNAME];
  44. extern char cfgval[MAXNAMES][255];
  45. extern char configfile[];
  46. extern char autoexec[];
  47. extern char tempdir[];
  48. extern char vDosCaption[];
  49. extern bool curauto;
  50. extern bool winHidden;
  51. extern bool autoHide,mouseHidden;
  52. extern bool usesMouse;
  53. extern bool uselfn;
  54. extern bool speaker;
  55. extern bool shortcut;
  56. extern bool topwin;
  57. extern bool showital;
  58. extern bool showsout;
  59. extern bool showsubp;
  60. extern bool blinkCursor;
  61. extern bool synctime;
  62. extern bool winrun;
  63. extern bool winKey;
  64. extern int screen;
  65. extern int keymode,keydelay,keyinter;
  66. extern int wpVersion;
  67. extern int codepage;
  68. extern bool printTimeout;
  69. extern Bit8u initialvMode;
  70. #define idleTrigger 5 // When to sleep
  71. extern int idleCount;
  72. extern bool idleSkip; // Don't sleep!
  73. extern Bit32s CPU_Cycles;
  74. #define CPU_CyclesLimit 32768
  75. #define PIT_TICK_RATE 1193182
  76. extern Bitu lastOpcode;
  77. extern Bit8u ISR; // Interrupt Service Routine
  78. extern bool keyb_req;
  79. extern bool hPadding; // Add extra pixels to the left and right?
  80. extern Bitu hPadPixs; // Horizontal padding pixels at the left=char width/2 rounded up (right remainder of char width)
  81. extern bool WinProgNowait; // Should Windows program return immediately (not called from command.com)
  82. extern int spoolPRT; // Printerport being spooled
  83. #endif