mmage.h 785 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _MMAGE_H
  2. #define _MMAGE_H
  3. #define THIS_APP_TITLE TEXT("MiracleMage")
  4. #define THIS_APP_URL TEXT("http://www04.u-page.so-net.ne.jp/td5/zry/WonderWitch/MiracleMage/")
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define WINVER 0x0400 // Win 9x / NT 4.0 or later
  9. #define _WIN32_IE 0x0300 // IE 3.0 or later
  10. #include <windows.h>
  11. typedef struct {
  12. HINSTANCE hInst;
  13. HWND hWnd;
  14. HDC title;
  15. HANDLE syncevent;
  16. int ww_lcd_width;
  17. int winwidth;
  18. int ww_lcd_height;
  19. int winheight;
  20. int syncperiod;
  21. BOOL running;
  22. BOOL loaded;
  23. HANDLE cputhread;
  24. BOOL active;
  25. int key;
  26. int keyhit;
  27. int oldkey;
  28. } WONW32CONTEXT, *LPWONW32CONTEXT;
  29. extern LPWONW32CONTEXT wonw32ctx;
  30. #ifdef _DEBUG
  31. void ShowError(int code);
  32. #endif
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif // #ifndef _MMAGE_H