From 50a37dbe8b73033a6295c9794c0f2f1b8db2b469 Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期五, 28 六月 2024 18:03:04 +0800 Subject: [PATCH] update check dlg --- jrj/xframe/wobject/xbase.hpp | 41 ++++++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 17 deletions(-) diff --git a/jrj/xframe/wobject/xbase.hpp b/jrj/xframe/wobject/xbase.hpp index 532c6ac..1fc14ab 100644 --- a/jrj/xframe/wobject/xbase.hpp +++ b/jrj/xframe/wobject/xbase.hpp @@ -209,24 +209,31 @@ { }; -struct OVERLAPPED : public xstruct -{ - int Internal; - int InternalHigh; - int Offset; - int OffsetHigh; - int hEvent; -}; -struct OFSTRUCT : public xstruct -{ - int cBytes; - int fFixedDisk; - int nErrCode; - int Reserved1; - int Reserved2; - string szPathName; -}; +typedef struct _OVERLAPPED { + ULONG_PTR Internal; + ULONG_PTR InternalHigh; + union { + struct { + DWORD Offset; + DWORD OffsetHigh; + } DUMMYSTRUCTNAME; + LPVOID Pointer; + } DUMMYUNIONNAME; + + HANDLE hEvent; +} OVERLAPPED, * LPOVERLAPPED; + + +#define OFS_MAXPATHNAME 128 +typedef struct _OFSTRUCT { + BYTE cBytes; + BYTE fFixedDisk; + WORD nErrCode; + WORD Reserved1; + WORD Reserved2; + CHAR szPathName[OFS_MAXPATHNAME]; +} OFSTRUCT; struct CELLNMHDR : public NMHDR { -- Gitblit v1.9.3