Changeset 780 for trunk/include
- Timestamp:
- Sep 1, 1999, 9:12:23 PM (26 years ago)
- Location:
- trunk/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/misc.h
r25 r780 1 /* $Id: misc.h,v 1. 6 1999-06-01 15:46:21phaller Exp $ */1 /* $Id: misc.h,v 1.7 1999-09-01 19:12:13 phaller Exp $ */ 2 2 3 3 /* … … 10 10 #define __MISC_H__ 11 11 12 #ifndef _OS2WIN_H 13 #include <win32type.h> 14 #endif 15 12 16 #ifdef __cplusplus 13 17 extern "C" { 14 18 #endif 15 16 19 17 20 /* enable support for the _interrupt() statement */ … … 40 43 41 44 42 #ifndef ULONG 43 # define ULONG unsigned long 45 // necessary types 46 #ifdef ULONG 47 #error ULONG definition is bad. 48 #define ULONG nope. 44 49 #endif 45 46 #ifndef HMODULE 47 # define HMODULE ULONG 48 #endif 50 typedef unsigned long ULONG; 51 typedef unsigned long HMODULE; 49 52 50 53 #ifndef SYSTEM … … 63 66 64 67 65 #ifndef _OS2WIN_H66 #include <win32type.h>67 #endif68 69 68 #include "versionos2.h" 70 69 #include "unicode.h" 71 70 72 73 71 #endif -
trunk/include/win/shellapi.h
r183 r780 1 /* $Id: shellapi.h,v 1. 2 1999-06-24 19:27:48phaller Exp $ */1 /* $Id: shellapi.h,v 1.3 1999-09-01 19:12:13 phaller Exp $ */ 2 2 3 3 #ifndef _WINE_SHELLAPI_H … … 12 12 */ 13 13 14 typedef struct _DRAGINFOA 14 typedef struct _DRAGINFOA 15 15 { UINT uSize; 16 16 POINT pt; … … 20 20 } DRAGINFOA, * LPDRAGINFOA; 21 21 22 typedef struct _DRAGINFOW 22 typedef struct _DRAGINFOW 23 23 { UINT uSize; 24 24 POINT pt; … … 79 79 #define ABE_BOTTOM 3 80 80 81 typedef struct _AppBarData 81 typedef struct _AppBarData 82 82 { DWORD cbSize; 83 83 HWND hWnd; … … 113 113 #define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */ 114 114 115 typedef struct tagSHFILEINFOA 115 typedef struct tagSHFILEINFOA 116 116 { HICON hIcon; /* icon */ 117 117 int iIcon; /* icon index */ … … 121 121 } SHFILEINFOA; 122 122 123 typedef struct tagSHFILEINFOW 123 typedef struct tagSHFILEINFOW 124 124 { HICON hIcon; /* icon */ 125 125 int iIcon; /* icon index */ … … 147 147 #define FOF_MULTIDESTFILES 0x0001 148 148 #define FOF_CONFIRMMOUSE 0x0002 149 #define FOF_SILENT 0x0004 149 #define FOF_SILENT 0x0004 150 150 #define FOF_RENAMEONCOLLISION 0x0008 151 #define FOF_NOCONFIRMATION 0x0010 152 #define FOF_WANTMAPPINGHANDLE 0x0020 151 #define FOF_NOCONFIRMATION 0x0010 152 #define FOF_WANTMAPPINGHANDLE 0x0020 153 153 #define FOF_ALLOWUNDO 0x0040 154 #define FOF_FILESONLY 0x0080 155 #define FOF_SIMPLEPROGRESS 0x0100 156 #define FOF_NOCONFIRMMKDIR 0x0200 157 #define FOF_NOERRORUI 0x0400 154 #define FOF_FILESONLY 0x0080 155 #define FOF_SIMPLEPROGRESS 0x0100 156 #define FOF_NOCONFIRMMKDIR 0x0200 157 #define FOF_NOERRORUI 0x0400 158 158 159 159 typedef WORD FILEOP_FLAGS; 160 160 161 #define PO_DELETE 0x0013 162 #define PO_RENAME 0x0014 163 #define PO_PORTCHANGE 0x0020 161 #define PO_DELETE 0x0013 162 #define PO_RENAME 0x0014 163 #define PO_PORTCHANGE 0x0020 164 164 165 165 typedef WORD PRINTEROP_FLAGS; … … 187 187 } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW; 188 188 189 DWORD WIN32API SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp); 189 DWORD WIN32API SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp); 190 190 DWORD WIN32API SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp); 191 191 … … 300 300 HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR); 301 301 302 BOOLWINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);303 BOOLWINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);302 INT WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON); 303 INT WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON); 304 304 305 305 #pragma pack(4) -
trunk/include/win/windef.h
r746 r780 1 /* $Id: windef.h,v 1. 7 1999-08-30 22:15:20 sandervlExp $ */1 /* $Id: windef.h,v 1.8 1999-09-01 19:12:14 phaller Exp $ */ 2 2 3 3 /* … … 178 178 typedef unsigned short WCHAR; 179 179 typedef unsigned short BOOL16; 180 typedef intBOOL;180 typedef unsigned long BOOL; 181 181 typedef double DATE; 182 182 typedef long LONG_PTR; -
trunk/include/win/wingdi.h
r619 r780 1 /* $Id: wingdi.h,v 1. 2 1999-08-22 11:39:38 sandervlExp $ */1 /* $Id: wingdi.h,v 1.3 1999-09-01 19:12:14 phaller Exp $ */ 2 2 3 3 #ifndef __WINE_WINGDI_H … … 319 319 #define COLORONCOLOR 3 320 320 #define HALFTONE 4 321 #define MAXSTRETCHBLTMODE 4 321 #define MAXSTRETCHBLTMODE 4 322 322 323 323 #define STRETCH_ANDSCANS BLACKONWHITE … … 425 425 426 426 typedef struct 427 { 427 { 428 428 UINT16 lbStyle; 429 429 COLORREF lbColor WINE_PACKED; … … 432 432 433 433 typedef struct 434 { 434 { 435 435 UINT lbStyle; 436 436 COLORREF lbColor; … … 585 585 * 586 586 * fsCsb 64-bit bitmap. The low 32 bits map the Windows codepages for 587 * which the font provides glyphs. The high 32 bits are for 587 * which the font provides glyphs. The high 32 bits are for 588 588 * non Windows codepages. 589 589 */ … … 594 594 } FONTSIGNATURE,*LPFONTSIGNATURE; 595 595 596 typedef struct 596 typedef struct 597 597 { 598 598 UINT ciCharset; /* character set */ … … 626 626 #define OBJ_ENHMETAFILE 13 627 627 628 628 629 629 typedef struct 630 630 { … … 637 637 } XFORM, *LPXFORM; 638 638 639 typedef struct 639 typedef struct 640 640 { 641 641 INT16 txfHeight; … … 1376 1376 #define TT_PRIM_LINE 1 1377 1377 #define TT_PRIM_QSPLINE 2 1378 #define TT_POLYGON_TYPE 24 1378 #define TT_POLYGON_TYPE 24 1379 1379 1380 1380 /* Get/SetSystemPaletteUse() values */ … … 1393 1393 1394 1394 typedef struct 1395 { 1395 { 1396 1396 WORD palVersion; 1397 1397 WORD palNumEntries; … … 1403 1403 typedef struct 1404 1404 { 1405 UINT16 lopnStyle; 1405 UINT16 lopnStyle; 1406 1406 POINT16 lopnWidth WINE_PACKED; 1407 1407 COLORREF lopnColor WINE_PACKED; … … 1410 1410 typedef struct 1411 1411 { 1412 UINT lopnStyle; 1412 UINT lopnStyle; 1413 1413 POINT lopnWidth WINE_PACKED; 1414 1414 COLORREF lopnColor WINE_PACKED; … … 1788 1788 #define CBM_INIT 4 1789 1789 1790 typedef struct 1790 typedef struct 1791 1791 { 1792 1792 BITMAP dsBm; … … 1964 1964 ie. the header is just the first record in the metafile */ 1965 1965 typedef struct { 1966 DWORD iType; 1967 DWORD nSize; 1968 RECTL rclBounds; 1969 RECTL rclFrame; 1970 DWORD dSignature; 1971 DWORD nVersion; 1972 DWORD nBytes; 1973 DWORD nRecords; 1974 WORD nHandles; 1975 WORD sReserved; 1976 DWORD nDescription; 1977 DWORD offDescription; 1978 DWORD nPalEntries; 1979 SIZEL szlDevice; 1966 DWORD iType; 1967 DWORD nSize; 1968 RECTL rclBounds; 1969 RECTL rclFrame; 1970 DWORD dSignature; 1971 DWORD nVersion; 1972 DWORD nBytes; 1973 DWORD nRecords; 1974 WORD nHandles; 1975 WORD sReserved; 1976 DWORD nDescription; 1977 DWORD offDescription; 1978 DWORD nPalEntries; 1979 SIZEL szlDevice; 1980 1980 SIZEL szlMillimeters; 1981 1981 DWORD cbPixelFormat; 1982 1982 DWORD offPixelFormat; 1983 1983 DWORD bOpenGL; 1984 } ENHMETAHEADER, *LPENHMETAHEADER; 1985 1986 typedef struct { 1987 DWORD iType; 1988 DWORD nSize; 1989 DWORD dParm[1]; 1990 } ENHMETARECORD, *LPENHMETARECORD; 1984 } ENHMETAHEADER, *LPENHMETAHEADER; 1985 1986 typedef struct { 1987 DWORD iType; 1988 DWORD nSize; 1989 DWORD dParm[1]; 1990 } ENHMETARECORD, *LPENHMETARECORD; 1991 1991 1992 1992 typedef struct { … … 2288 2288 DWORD offBmiMask; 2289 2289 DWORD cbBmiMask; 2290 DWORD offBitsMask; 2290 DWORD offBitsMask; 2291 2291 DWORD cbBitsMask; 2292 2292 } EMRPLGBLT, *PEMRPLGBLT; … … 2320 2320 POINTL aptl[1]; 2321 2321 BYTE abTypes[1]; 2322 } EMRPOLYDRAW, *PEMRPOLYDRAW; 2322 } EMRPOLYDRAW, *PEMRPOLYDRAW; 2323 2323 2324 2324 typedef struct { … … 2508 2508 } EMRSTRETCHDIBITS, *PEMRSTRETCHDIBITS; 2509 2509 2510 typedef INT (* CALLBACK ENHMFENUMPROC)(HDC, LPHANDLETABLE, 2510 typedef INT (* CALLBACK ENHMFENUMPROC)(HDC, LPHANDLETABLE, 2511 2511 LPENHMETARECORD, INT, LPVOID); 2512 2512 … … 2844 2844 #define DMTT_SUBDEV 3 2845 2845 2846 typedef struct 2846 typedef struct 2847 2847 { 2848 2848 INT16 cbSize; … … 2851 2851 } DOCINFO16, *LPDOCINFO16; 2852 2852 2853 typedef struct 2853 typedef struct 2854 2854 { 2855 2855 INT cbSize; … … 2860 2860 } DOCINFOA, *LPDOCINFOA; 2861 2861 2862 typedef struct 2862 typedef struct 2863 2863 { 2864 2864 INT cbSize; … … 2963 2963 2964 2964 BOOL WINAPI AngleArc(HDC, INT, INT, DWORD, FLOAT, FLOAT); 2965 BOOL WINAPI ArcTo(HDC, INT, INT, INT, INT, INT, INT, INT, INT); 2965 BOOL WINAPI ArcTo(HDC, INT, INT, INT, INT, INT, INT, INT, INT); 2966 2966 HENHMETAFILE WINAPI CloseEnhMetaFile(HDC); 2967 2967 HBRUSH WINAPI CreateDIBPatternBrushPt(const void*,UINT); … … 3066 3066 HMETAFILE WINAPI SetMetaFileBitsEx(UINT,const BYTE*); 3067 3067 BOOL WINAPI SetWorldTransform(HDC,const XFORM*); 3068 BOOLWINAPI TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD);3068 UINT WINAPI TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD); 3069 3069 3070 3070 /* Declarations for functions that change between Win16 and Win32 */ -
trunk/include/win32type.h
r698 r780 1 /* $Id: win32type.h,v 1.16 1999-08-25 15:47:40 sandervl Exp $ */ 1 /* $Id: win32type.h,v 1.17 1999-09-01 19:12:13 phaller Exp $ */ 2 3 /* 4 * Win32 type definitions for OS/2 5 * 6 * Copyright 1998 Sander van Leeuwen 7 * Copyright 1998 Patrick Haller 8 * 9 * Project Odin Software License can be found in LICENSE.TXT 10 * 11 */ 12 2 13 3 14 #ifndef __WIN32TYPE_H__ … … 8 19 #pragma pack(1) 9 20 21 // linkage macros 10 22 #define NEAR 11 23 #define FAR 12 24 #define UNALIGNED 13 14 15 #ifndef VOID16 # define VOID void17 #endif18 19 #ifndef LONG20 # define LONG long21 #endif22 23 #ifndef ULONG24 # define ULONG unsigned long25 #endif26 27 #ifndef SHORT28 # define SHORT short29 #endif30 31 #ifndef USHORT32 # define USHORT unsigned short33 #endif34 35 #ifndef CHAR36 # define CHAR char37 #endif38 39 #ifndef UCHAR40 # define UCHAR unsigned char41 #endif42 43 44 45 #define LPVOID VOID *46 #define LPCVOID const VOID *47 #define DWORD ULONG48 #define LPDWORD DWORD *49 #define LPLONG LONG *50 #define PDWORD DWORD *51 #define LRESULT DWORD52 typedef LONG LPARAM;53 typedef unsigned int UINT;54 typedef UINT WPARAM;55 25 #define CONST const 26 27 28 /***************************************************************************** 29 * Base types (already defined in OS2DEF.H) * 30 *****************************************************************************/ 31 32 #ifndef OS2DEF_INCLUDED 33 // void 34 #undef VOID 35 #undef PVOID 36 typedef void VOID; 37 typedef void* PVOID; 38 39 // 32 bit integers 40 #undef LONG 41 #undef PLONG 42 #undef PCLONG 43 typedef long LONG; 44 typedef signed long* PLONG; 45 typedef const signed long* PCLONG; 46 47 #undef ULONG 48 #undef PULONG 49 #undef PCULONG 50 typedef unsigned long ULONG; 51 typedef unsigned long* PULONG; 52 typedef const unsigned long* PCULONG; 53 54 #undef INT32 55 #undef PINT32 56 #undef PCINT32 57 typedef unsigned int INT32; 58 typedef unsigned int * PINT32; 59 typedef const unsigned int * PCINT32; 60 61 #undef UINT32 62 #undef PUINT32 63 #undef PCUINT32 64 typedef unsigned int UINT32; 65 typedef unsigned int * PUINT32; 66 typedef const unsigned int * PCUINT32; 67 68 #undef UINT 69 #undef PUINT 70 #undef PCUINT 71 typedef unsigned int UINT; 72 typedef unsigned int * PUINT; 73 typedef const unsigned int * PCUINT; 74 75 76 // 16 bit integers 77 #undef SHORT 78 #undef PSHORT 79 #undef PCSHORT 80 typedef short SHORT; 81 typedef signed short* PSHORT; 82 typedef const signed short* PCSHORT; 83 84 #undef USHORT 85 #undef PUSHORT 86 #undef PCUSHORT 87 typedef unsigned short USHORT; 88 typedef unsigned short* PUSHORT; 89 typedef const unsigned short* PCUSHORT; 90 91 #undef UINT16 92 #undef PUINT16 93 #undef PCUINT16 94 typedef unsigned short UINT16; 95 typedef unsigned short* PUINT16; 96 typedef const unsigned short* PCUINT16; 97 98 99 // 8 bit integers 100 #undef UCHAR 101 #undef PUCHAR 102 #undef PCUCHAR 103 typedef unsigned char UCHAR; 104 typedef unsigned char* PUCHAR; 105 typedef const unsigned char* PCUCHAR; 106 107 #undef UINT8 108 #undef PUINT8 109 #undef PCUINT8 110 typedef unsigned char UINT8; 111 typedef unsigned char* PUINT8; 112 typedef const unsigned char* PCUINT8; 113 114 #undef INT8 115 #undef PINT8 116 #undef PCINT8 117 typedef signed char INT8; 118 typedef signed char* PINT8; 119 typedef const signed char* PCINT8; 120 121 #undef BYTE 122 #undef PBYTE 123 #undef PCBYTE 124 typedef unsigned char BYTE; 125 typedef unsigned char* PBYTE; 126 typedef const unsigned char* PCBYTE; 127 128 129 #endif 130 131 132 /***************************************************************************** 133 * Common types * 134 *****************************************************************************/ 135 136 #if !(defined(__WINE_WINDEF_H) || defined(OS2DEF_INCLUDED)) 137 138 #undef INT 139 #undef PINT 140 #undef PCINT 141 typedef unsigned int INT; 142 typedef unsigned int * PINT; 143 typedef const unsigned int * PCINT; 144 145 #undef CHAR 146 #undef PCHAR 147 #undef PCCHAR 148 typedef char CHAR; 149 typedef signed char* PCHAR; 150 typedef const signed char* PCCHAR; 151 152 153 #endif 154 155 /***************************************************************************** 156 * Win32 types * 157 *****************************************************************************/ 158 159 #ifndef __WINE_WINDEF_H 160 // void 161 #undef LPVOID 162 #undef LPCVOID 163 typedef void* LPVOID; 164 typedef const void* LPCVOID; 165 166 // 32 bit integers 167 #undef LPLONG 168 #undef LPCLONG 169 typedef signed long* LPLONG; 170 typedef const signed long* LPCLONG; 171 172 #undef LPULONG 173 #undef LPCULONG 174 typedef unsigned long* LPULONG; 175 typedef const unsigned long* LPCULONG; 176 177 #undef LPINT32 178 #undef LPCINT32 179 typedef unsigned int * LPINT32; 180 typedef const unsigned int * LPCINT32; 181 182 #undef LPINT 183 #undef LPCINT 184 typedef unsigned int * LPINT; 185 typedef const unsigned int * LPCINT; 186 187 #undef LPUINT32 188 #undef LPCUINT32 189 typedef unsigned int * LPUINT32; 190 typedef const unsigned int * LPCUINT32; 191 192 #undef LPUINT 193 #undef LPCUINT 194 typedef unsigned int * LPUINT; 195 typedef const unsigned int * LPCUINT; 196 197 198 // 16 bit integers 199 #undef INT16 200 #undef PINT16 201 #undef PCINT16 202 typedef unsigned short INT16; 203 typedef unsigned short* PINT16; 204 typedef const unsigned short* PCINT16; 205 206 #undef LPUINT16 207 #undef LPCUINT16 208 typedef unsigned short* LPUINT16; 209 typedef const unsigned short* LPCUINT16; 210 211 #undef LPSHORT 212 #undef LPCSHORT 213 typedef signed short* LPSHORT; 214 typedef const signed short* LPCSHORT; 215 216 #undef LPUSHORT 217 #undef LPCUSHORT 218 typedef unsigned short* LPUSHORT; 219 typedef const unsigned short* LPCUSHORT; 220 221 #undef LPINT16 222 #undef LPCINT16 223 typedef unsigned short* LPINT16; 224 typedef const unsigned short* LPCINT16; 225 226 // 8 bit integers 227 #undef LPCHAR 228 #undef LPCCHAR 229 typedef signed char* LPCHAR; 230 typedef const signed char* LPCCHAR; 231 232 #undef LPUCHAR 233 #undef LPCUCHAR 234 typedef unsigned char* LPUCHAR; 235 typedef const unsigned char* LPCUCHAR; 236 237 #undef LPUINT8 238 #undef LPCUINT8 239 typedef unsigned char* LPUINT8; 240 typedef const unsigned char* LPCUINT8; 241 242 #undef LPINT8 243 #undef LPCINT8 244 typedef signed char* LPINT8; 245 typedef const signed char* LPCINT8; 246 247 #undef LPBYTE 248 #undef LPCBYTE 249 typedef unsigned char* LPBYTE; 250 typedef const unsigned char* LPCBYTE; 251 252 // doubles 253 typedef double DOUBLE; 254 typedef double LONGLONG; 255 typedef double ULONGULONG; 256 typedef double DWORDLONG; 257 typedef ULONGULONG *PULONGULONG; 258 typedef DWORDLONG *PDWORDLONG; 259 260 // boolean 261 typedef unsigned long BOOL32; 262 typedef unsigned short BOOL16; 263 typedef unsigned long BOOL; 264 265 266 // calling conventions / linkage 267 #ifndef WINAPI 268 # error Please include ODIN.H 269 #endif 270 271 #ifndef WIN32API 272 # error Please include ODIN.H 273 #endif 274 275 276 // 32 bit integer 277 #undef DWORD 278 #undef PDWORD 279 #undef LPDWORD 280 #undef PCDWORD 281 #undef LPCDWORD 282 typedef unsigned long DWORD; 283 typedef unsigned long* PDWORD; 284 typedef unsigned long* LPDWORD; 285 typedef const unsigned long* PCDWORD; 286 typedef const unsigned long* LPCDWORD; 287 288 typedef DWORD LRESULT; 289 290 291 // 16 bit integer 292 #undef WORD 293 #undef PWORD 294 #undef LPWORD 295 #undef PCWORD 296 #undef LPCWORD 297 typedef unsigned short WORD; 298 typedef unsigned short* PWORD; 299 typedef unsigned short* LPWORD; 300 typedef const unsigned short* PCWORD; 301 typedef const unsigned short* LPCWORD; 302 303 304 305 // strings 306 /* Some systems might have wchar_t, but we really need 16 bit characters */ 307 typedef unsigned short WCHAR; 56 308 #define LPTSTR char * 57 309 #define LPSTR char * 58 310 #define LPCSTR const char * 59 311 #define LPCTSTR const char * 60 #define LPBYTE unsigned char * 312 #define LPWSTR WCHAR * 313 #define LPCWSTR const WCHAR * 314 315 // handles 61 316 #define HANDLE ULONG 62 317 #define PHANDLE HANDLE * 63 #define WORD USHORT64 #define LPWORD WORD *65 #define PWORD WORD *66 #define LPCWORD const WORD *67 #define WCHAR USHORT68 #define LPWSTR WCHAR *69 #define LPCWSTR const WCHAR *70 318 #define HINSTANCE ULONG 71 319 #define HGLOBAL DWORD … … 79 327 #define WNDPROC_O32 DWORD 80 328 #define HRESULT DWORD 329 #define HFILE DWORD 81 330 82 331 //Wine types 83 #define UINT16 WORD84 #define UINT32 DWORD85 #define BOOL16 WORD86 332 #define HMODULE32 HMODULE 87 333 #define HWND16 WORD 88 334 #define HWND32 DWORD 89 335 #define LPUINT16 WORD * 90 #define LPUINT32 DWORD *91 336 #define HTASK16 WORD 92 337 #define HMMIO16 WORD 93 338 #define HTASK32 DWORD 94 339 #define HMMIO32 DWORD 95 #define INT16 short int96 #define INT32 int97 340 #define SEGPTR DWORD 98 341 #define RECT16 RECT … … 103 346 #define HDRV16 WORD 104 347 #define HINSTANCE16 WORD 105 typedef double ULONGULONG; 106 typedef double DWORDLONG; 107 typedef ULONGULONG *PULONGULONG; 108 typedef DWORDLONG *PDWORDLONG; 109 #define BOOL int 348 349 // other 350 #ifndef HWND 351 # define HWND HWND32 352 #endif 353 354 typedef LONG LPARAM; 355 typedef UINT WPARAM; 356 357 typedef double DATE; 358 typedef long LONG_PTR; 359 typedef unsigned long ULONG_PTR; 360 110 361 111 362 #define DECLSPEC_IMPORT 112 363 113 #define DECLARE_HANDLE(x) typedef DWORD x 114 115 typedef union _LARGE_INTEGER { 116 struct { 117 ULONG LowPart; 118 LONG HighPart; 119 } u; 120 ULONGULONG QuadPart; 121 } LARGE_INTEGER; 364 122 365 123 366 /* The security attributes structure */ … … 128 371 BOOL bInheritHandle; 129 372 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; 373 130 374 131 375 #define OFS_MAXPATHNAME 128 … … 138 382 BYTE szPathName[OFS_MAXPATHNAME]; 139 383 } OFSTRUCT, *LPOFSTRUCT; 384 140 385 141 386 #ifndef _FILETIME_ … … 163 408 } BY_HANDLE_FILE_INFORMATION ; 164 409 165 DECLARE_HANDLE(HTASK);166 167 #ifndef WIN32API168 #define WIN32API __stdcall169 #endif170 171 410 #define CALLBACK WIN32API 172 411 … … 174 413 typedef LRESULT (* CALLBACK FARPROC16)(); 175 414 176 typedef struct tagPOINT 177 { 178 LONG x; 179 LONG y; 180 } POINT, *PPOINT, *LPPOINT; 181 182 typedef struct 183 { 184 HWND hwnd; 185 UINT message; 186 WPARAM wParam; 187 LPARAM lParam; 188 DWORD time; 189 POINT pt; 190 } MSG, *LPMSG; 415 typedef union _LARGE_INTEGER { 416 struct { 417 ULONG LowPart; 418 LONG HighPart; 419 } u; 420 ULONGULONG QuadPart; 421 } LARGE_INTEGER; 422 191 423 192 424 typedef struct … … 222 454 } WNDCLASSEXW, *LPWNDCLASSEXW; 223 455 456 457 typedef struct tagPOINT 458 { 459 LONG x; 460 LONG y; 461 } POINT, *PPOINT, *LPPOINT; 462 463 464 typedef struct 465 { 466 HWND hwnd; 467 UINT message; 468 WPARAM wParam; 469 LPARAM lParam; 470 DWORD time; 471 POINT pt; 472 } MSG, *LPMSG; 473 474 475 #ifndef RECT 476 //conflict with mcios2.h 477 478 typedef struct tagRECT 479 { 480 INT left; 481 INT top; 482 INT right; 483 INT bottom; 484 } RECT, *PRECT, *LPRECT; 485 typedef const RECT *LPCRECT; 486 #endif 487 488 489 /* WM_WINDOWPOSCHANGING/CHANGED struct */ 490 typedef struct tagWINDOWPOS 491 { 492 HWND hwnd; 493 HWND hwndInsertAfter; 494 INT x; 495 INT y; 496 INT cx; 497 INT cy; 498 UINT flags; 499 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS; 500 501 224 502 typedef struct tagCREATESTRUCTA 225 503 { … … 253 531 DWORD dwExStyle; 254 532 } CREATESTRUCTW, *LPCREATESTRUCTW; 255 256 #ifndef RECT 257 //conflict with mcios2.h 258 259 typedef struct tagRECT 260 { 261 INT left; 262 INT top; 263 INT right; 264 INT bottom; 265 } RECT, *PRECT, *LPRECT; 266 typedef const RECT *LPCRECT; 267 #endif 533 #endif 534 535 536 537 /***************************************************************************** 538 * Additional types * 539 *****************************************************************************/ 540 541 //PH: Warning -- OS/2 has BOOL == unsigned long, 542 // Win32 has BOOL == int. 543 typedef int BOOL32_W; 544 typedef int BOOL_W; 545 546 547 548 549 550 551 //@@@PH ----------------------------------------------------------------------- 552 #if 0 553 554 555 #define DECLARE_HANDLE(x) typedef DWORD x 556 557 DECLARE_HANDLE(HTASK); 558 559 #ifndef WIN32API 560 #define WIN32API __stdcall 561 #endif 562 268 563 269 564 typedef struct _MEMORY_BASIC_INFORMATION … … 278 573 } MEMORY_BASIC_INFORMATION,*PMEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION; 279 574 280 /* WM_WINDOWPOSCHANGING/CHANGED struct */ 281 typedef struct tagWINDOWPOS 282 { 283 HWND hwnd; 284 HWND hwndInsertAfter; 285 INT x; 286 INT y; 287 INT cx; 288 INT cy; 289 UINT flags; 290 } WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS; 575 #endif 291 576 292 577 #pragma pack()
Note:
See TracChangeset
for help on using the changeset viewer.