From 378d4b51e3112a3a27eabfd3aa97caec2bd5dafd Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 05 七月 2024 17:17:50 +0800 Subject: [PATCH] update --- jrj/xframe/system/base.hpp | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/jrj/xframe/system/base.hpp b/jrj/xframe/system/base.hpp index 8afd671..baf79a0 100644 --- a/jrj/xframe/system/base.hpp +++ b/jrj/xframe/system/base.hpp @@ -30,18 +30,21 @@ typedef const wchar_t* string; +#ifdef _XWIN typedef long LONG; typedef struct HWND__ {} * HWND; typedef struct HMENU__ {} * HMENU; typedef struct HDC__ {} * HDC; -typedef void * HINSTANCE; +typedef struct HINSTANCE_ {}* HINSTANCE; +typedef struct HMODULE_ {}* HMODULE; +typedef short HFILE; typedef wchar_t wchar; typedef wchar* BSTR; typedef const wchar_t* LPCTSTR; typedef wchar_t* LPWSTR; -typedef wchar_t* LPCWSTR; +typedef const wchar_t* LPCWSTR; typedef wchar_t TCHAR; typedef wchar_t* LPTSTR; typedef int BOOL; @@ -56,11 +59,21 @@ typedef UINT_PTR WPARAM; typedef LONG_PTR LPARAM; typedef LONG_PTR LRESULT; -typedef char BYTE; +typedef unsigned char BYTE; typedef unsigned short ushort; typedef unsigned long DWORD; typedef DWORD COLORREF; + +typedef unsigned short WORD; +typedef unsigned int UINT; +typedef char CHAR; +typedef wchar_t WCHAR; +typedef void* HANDLE; +typedef const char* LPCSTR; +typedef void* LPVOID; +typedef DWORD* LPDWORD; +typedef const void* LPCVOID; struct SYSTEMTIME { ushort wYear; @@ -95,6 +108,8 @@ LONG cy; } SIZE, *PSIZE, *LPSIZE; +#endif + -- Gitblit v1.9.3