In desktop mode, only move the window in Z-order relative to siblings
[wine.git] / include / wtypes.idl
blobade2dc4b532bb5a2fa0eb7ca5dc92356734b4b9d
1 /*
2 * Basic types used by COM interfaces
4 * Copyright 2002 Ove Kaaven
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 import "basetsd.h";
22 import "guiddef.h";
25 uuid(D3980A60-910C-1068-9341-00DD010F2F1C),
26 version(0.1),
27 pointer_default(unique)
30 interface IWinTypes
33 /******************** BASIC WIN32 TYPES ********************/
34 cpp_quote("#if 0 /* winnt.h */") /* don't redefine these */
36 typedef unsigned char BYTE;
37 typedef unsigned short WORD;
38 typedef unsigned long DWORD;
39 typedef long BOOL;
40 typedef unsigned char UCHAR;
41 typedef int INT;
42 typedef unsigned int UINT;
43 typedef short SHORT;
44 typedef unsigned short USHORT;
45 typedef long LONG;
46 typedef unsigned long ULONG;
47 typedef float FLOAT;
49 typedef void *PVOID, *LPVOID;
51 typedef char CHAR;
52 typedef [string] CHAR *LPSTR;
53 typedef [string] const CHAR *LPCSTR;
55 typedef wchar_t WCHAR;
56 typedef [string] WCHAR *LPWSTR;
57 typedef [string] const WCHAR *LPCWSTR;
59 typedef boolean BOOLEAN;
61 typedef DWORD COLORREF;
63 typedef void *HANDLE;
64 #define DECLARE_HANDLE(name) typedef void *name
65 #define DECLARE_WIREM_HANDLE(name) typedef [wire_marshal(wire##name)] void*name
67 DECLARE_HANDLE(HACCEL);
68 DECLARE_HANDLE(HDC);
69 DECLARE_HANDLE(HFONT);
70 DECLARE_HANDLE(HWND);
71 DECLARE_HANDLE(HMENU);
72 DECLARE_HANDLE(HMODULE);
73 DECLARE_HANDLE(HINSTANCE);
74 DECLARE_HANDLE(HRGN);
75 DECLARE_HANDLE(HTASK);
76 DECLARE_HANDLE(HKEY);
77 DECLARE_HANDLE(HICON);
79 typedef LONG_PTR LRESULT;
81 typedef LONG HRESULT;
82 typedef DWORD LCID;
84 typedef unsigned __int64 DWORDLONG;
85 typedef __int64 LONGLONG;
86 typedef unsigned __int64 ULONGLONG;
88 typedef struct _LARGE_INTEGER {
89 LONGLONG QuadPart;
90 } LARGE_INTEGER;
92 typedef struct _ULARGE_INTEGER {
93 ULONGLONG QuadPart;
94 } ULARGE_INTEGER;
96 typedef struct _SID_IDENTIFIER_AUTHORITY {
97 UCHAR Value[6];
98 } SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY;
100 typedef struct _SID {
101 UCHAR Revision;
102 UCHAR SubAuthorityCount;
103 SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
104 [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
105 } SID, *PSID;
107 typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
109 typedef struct _ACL {
110 UCHAR AclRevision;
111 UCHAR Sbz1;
112 USHORT AclSize;
113 USHORT AceCount;
114 USHORT Sbz2;
115 } ACL;
116 typedef ACL *PACL;
118 typedef struct _SECURITY_DESCRIPTOR {
119 UCHAR Revision;
120 UCHAR Sbz1;
121 SECURITY_DESCRIPTOR_CONTROL Control;
122 PSID Owner;
123 PSID Group;
124 PACL Sacl;
125 PACL Dacl;
126 } SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
128 typedef struct _SECURITY_ATTRIBUTES
130 DWORD nLength;
131 LPVOID lpSecurityDescriptor;
132 BOOL bInheritHandle;
133 } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
135 typedef struct tagSIZE
137 LONG cx;
138 LONG cy;
139 } SIZE, *PSIZE, *LPSIZE;
140 typedef SIZE SIZEL, *PSIZEL, *LPSIZEL;
142 typedef struct tagPOINT
144 LONG x;
145 LONG y;
146 } POINT, *PPOINT, *LPPOINT;
148 typedef struct _POINTL
150 LONG x;
151 LONG y;
152 } POINTL;
154 typedef struct tagRECT
156 LONG left;
157 LONG top;
158 LONG right;
159 LONG bottom;
160 } RECT, *PRECT, *LPRECT;
161 typedef const RECT *LPCRECT;
163 typedef struct _RECTL
165 LONG left;
166 LONG top;
167 LONG right;
168 LONG bottom;
169 } RECTL, *PRECTL, *LPRECTL;
170 typedef const RECTL *LPCRECTL;
172 typedef UINT_PTR WPARAM;
173 typedef LONG_PTR LPARAM;
175 typedef struct tagMSG
177 HWND hwnd;
178 UINT message;
179 WPARAM wParam;
180 LPARAM lParam;
181 DWORD time;
182 POINT pt;
183 } MSG, *PMSG, *NPMSG, *LPMSG;
185 cpp_quote("#endif /* winnt.h */")
187 typedef double DOUBLE;
189 cpp_quote("#ifndef _PALETTEENTRY_DEFINED")
190 cpp_quote("#define _PALETTEENTRY_DEFINED")
191 typedef struct tagPALETTEENTRY {
192 BYTE peRed;
193 BYTE peGreen;
194 BYTE peBlue;
195 BYTE peFlags;
196 } PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY;
197 cpp_quote("#endif")
199 cpp_quote("#ifndef _LOGPALETTE_DEFINED")
200 cpp_quote("#define _LOGPALETTE_DEFINED")
201 typedef struct tagLOGPALETTE
203 WORD palVersion;
204 WORD palNumEntries;
205 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[*];
206 } LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE;
207 cpp_quote("#endif")
209 cpp_quote("#ifndef _FILETIME_")
210 cpp_quote("#define _FILETIME_")
211 typedef struct _FILETIME {
212 DWORD dwLowDateTime;
213 DWORD dwHighDateTime;
214 } FILETIME, *PFILETIME, *LPFILETIME;
215 cpp_quote("#endif")
217 cpp_quote("#ifndef _TEXTMETRIC_DEFINED")
218 cpp_quote("#define _TEXTMETRIC_DEFINED")
219 typedef struct
221 LONG tmHeight;
222 LONG tmAscent;
223 LONG tmDescent;
224 LONG tmInternalLeading;
225 LONG tmExternalLeading;
226 LONG tmAveCharWidth;
227 LONG tmMaxCharWidth;
228 LONG tmWeight;
229 LONG tmOverhang;
230 LONG tmDigitizedAspectX;
231 LONG tmDigitizedAspectY;
232 BYTE tmFirstChar;
233 BYTE tmLastChar;
234 BYTE tmDefaultChar;
235 BYTE tmBreakChar;
236 BYTE tmItalic;
237 BYTE tmUnderlined;
238 BYTE tmStruckOut;
239 BYTE tmPitchAndFamily;
240 BYTE tmCharSet;
241 } TEXTMETRICA, *LPTEXTMETRICA, *PTEXTMETRICA;
243 typedef struct
245 LONG tmHeight;
246 LONG tmAscent;
247 LONG tmDescent;
248 LONG tmInternalLeading;
249 LONG tmExternalLeading;
250 LONG tmAveCharWidth;
251 LONG tmMaxCharWidth;
252 LONG tmWeight;
253 LONG tmOverhang;
254 LONG tmDigitizedAspectX;
255 LONG tmDigitizedAspectY;
256 WCHAR tmFirstChar;
257 WCHAR tmLastChar;
258 WCHAR tmDefaultChar;
259 WCHAR tmBreakChar;
260 BYTE tmItalic;
261 BYTE tmUnderlined;
262 BYTE tmStruckOut;
263 BYTE tmPitchAndFamily;
264 BYTE tmCharSet;
265 } TEXTMETRICW, *LPTEXTMETRICW, *PTEXTMETRICW;
266 cpp_quote("#endif")
268 /******************** BASIC COM/OLE TYPES ********************/
270 typedef WCHAR OLECHAR;
271 typedef [string] OLECHAR *LPOLESTR;
272 typedef [string] const OLECHAR *LPCOLESTR;
273 cpp_quote("#ifndef __WINESRC__")
274 cpp_quote("#define OLESTR(str) L##str")
275 cpp_quote("#endif")
277 /* from Wine's pre-WIDL wtypes.h */
278 /* FIXME: does not belong here */
279 typedef CHAR OLECHAR16;
280 typedef LPSTR LPOLESTR16;
281 typedef LPCSTR LPCOLESTR16;
282 /* quoted because if BSTR16 is ever used in IDL files,
283 * it'll probably need some wire_marshal stuff too,
284 * and quoting these will detect any such necessity */
285 cpp_quote("typedef OLECHAR16 *BSTR16;")
286 cpp_quote("typedef BSTR16 *LPBSTR16;")
287 cpp_quote("#define OLESTR16(x) x")
289 typedef LONG SCODE;
291 typedef struct _COAUTHIDENTITY {
292 [size_is(UserLength+1)] USHORT *User;
293 ULONG UserLength;
294 [size_is(DomainLength+1)] USHORT *Domain;
295 ULONG DomainLength;
296 [size_is(PasswordLength+1)] USHORT *Password;
297 ULONG PasswordLength;
298 ULONG Flags;
299 } COAUTHIDENTITY;
301 typedef struct _COAUTHINFO {
302 DWORD dwAuthnSvc;
303 DWORD dwAuthzSvc;
304 LPWSTR pwszServerPrincName;
305 DWORD dwAuthnLevel;
306 DWORD dwImpersonationLevel;
307 COAUTHIDENTITY *pAuthIdentityData;
308 DWORD dwCapabilities;
309 } COAUTHINFO;
311 /* FIXME: COSERVERINFO was in Wine's pre-WIDL wtypes.h, but should be in objidl.idl */
312 typedef struct _COSERVERINFO {
313 DWORD dwReserved1;
314 LPWSTR pwszName;
315 COAUTHINFO *pAuthInfo;
316 DWORD dwReserved2;
317 } COSERVERINFO;
319 typedef enum tagMEMCTX {
320 MEMCTX_TASK = 1,
321 MEMCTX_SHARED = 2,
322 MEMCTX_MACSYSTEM = 3,
323 MEMCTX_UNKNOWN = -1,
324 MEMCTX_SAME = -2
325 } MEMCTX;
327 cpp_quote("#ifndef _ROTFLAGS_DEFINED")
328 cpp_quote("#define _ROTFLAGS_DEFINED")
329 cpp_quote("#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1")
330 cpp_quote("#define ROTFLAGS_ALLOWANYCLIENT 0x2")
331 cpp_quote("#endif")
333 typedef enum tagCLSCTX {
334 CLSCTX_INPROC_SERVER = 0x1,
335 CLSCTX_INPROC_HANDLER = 0x2,
336 CLSCTX_LOCAL_SERVER = 0x4,
337 CLSCTX_INPROC_SERVER16 = 0x8,
338 CLSCTX_REMOTE_SERVER = 0x10,
339 CLSCTX_INPROC_HANDLER16 = 0x20,
340 CLSCTX_INPROC_SERVERX86 = 0x40,
341 CLSCTX_INPROC_HANDLERX86 = 0x80,
342 CLSCTX_ESERVER_HANDLER = 0x100,
343 CLSCTX_NO_CODE_DOWNLOAD = 0x400,
344 CLSCTX_NO_CUSTOM_MARSHAL = 0x1000,
345 CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
346 CLSCTX_NO_FAILURE_LOG = 0x4000,
347 CLSCTX_DISABLE_AAA = 0x8000,
348 CLSCTX_ENABLE_AAA = 0x10000,
349 CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000
350 } CLSCTX;
352 cpp_quote("#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)")
353 cpp_quote("#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
354 cpp_quote("#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
356 typedef enum tagMSHLFLAGS {
357 MSHLFLAGS_NORMAL = 0,
358 MSHLFLAGS_TABLESTRONG = 1,
359 MSHLFLAGS_TABLEWEAK = 2,
360 MSHLFLAGS_NOPING = 4
361 } MSHLFLAGS;
363 typedef enum tagMSHCTX {
364 MSHCTX_LOCAL = 0,
365 MSHCTX_NOSHAREDMEM = 1,
366 MSHCTX_DIFFERENTMACHINE = 2,
367 MSHCTX_INPROC = 3,
368 MSHCTX_CROSSCTX = 4
369 } MSHCTX;
371 /******************** BLOB TYPES ********************/
373 typedef struct _BYTE_BLOB {
374 unsigned long clSize;
375 [size_is(clSize)] byte abData[];
376 } BYTE_BLOB;
377 typedef [unique] BYTE_BLOB *UP_BYTE_BLOB;
379 typedef struct _FLAGGED_BYTE_BLOB {
380 unsigned long fFlags;
381 unsigned long clSize;
382 [size_is(clSize)] byte abData[];
383 } FLAGGED_BYTE_BLOB;
384 typedef [unique] FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB;
386 typedef struct _FLAGGED_WORD_BLOB {
387 unsigned long fFlags;
388 unsigned long clSize;
389 [size_is(clSize)] unsigned short asData[];
390 } FLAGGED_WORD_BLOB;
391 typedef [unique] FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB;
393 typedef struct _BYTE_SIZEDARR {
394 unsigned long clSize;
395 [size_is(clSize)] byte *pData;
396 } BYTE_SIZEDARR;
398 typedef struct _SHORT_SIZEDARR {
399 unsigned long clSize;
400 [size_is(clSize)] unsigned short *pData;
401 } WORD_SIZEDARR;
403 typedef struct _LONG_SIZEDARR {
404 unsigned long clSize;
405 [size_is(clSize)] unsigned long *pData;
406 } DWORD_SIZEDARR;
408 typedef struct _HYPER_SIZEDARR {
409 unsigned long clSize;
410 [size_is(clSize)] hyper *pData;
411 } HYPER_SIZEDARR;
413 /******************** GDI TYPES ********************/
415 const unsigned long WDT_INPROC_CALL = 0x48746457;
416 const unsigned long WDT_REMOTE_CALL = 0x52746457;
418 typedef union _userCLIPFORMAT switch(long fContext) u {
419 case WDT_INPROC_CALL: DWORD dwValue;
420 case WDT_REMOTE_CALL: LPWSTR pwszName;
421 } userCLIPFORMAT;
423 typedef [unique] userCLIPFORMAT *wireCLIPFORMAT;
424 typedef [wire_marshal(wireCLIPFORMAT)] WORD CLIPFORMAT;
426 typedef struct tagRemHGLOBAL {
427 long fNullHGlobal;
428 unsigned long cbData;
429 [size_is(cbData)] byte data[];
430 } RemHGLOBAL;
432 typedef union _userHGLOBAL switch(long fContext) u {
433 case WDT_INPROC_CALL: long hInproc;
434 case WDT_REMOTE_CALL: FLAGGED_BYTE_BLOB *hRemote;
435 default: long hGlobal;
436 } userHGLOBAL;
438 typedef [unique] userHGLOBAL *wireHGLOBAL;
440 typedef struct tagRemHMETAFILEPICT {
441 long mm;
442 long xExt;
443 long yExt;
444 unsigned long cbData;
445 [size_is(cbData)] byte data[];
446 } RemHMETAFILEPICT;
448 typedef union _userHMETAFILE switch(long fContext) u {
449 case WDT_INPROC_CALL: long hInproc;
450 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
451 default: long hGlobal;
452 } userHMETAFILE;
454 typedef [unique] userHMETAFILE *wireHMETAFILE;
456 typedef struct _remoteMETAFILEPICT {
457 long mm;
458 long xExt;
459 long yExt;
460 userHMETAFILE *hMF;
461 } remoteMETAFILEPICT;
463 typedef union _userHMETAFILEPICT switch(long fContext) u {
464 case WDT_INPROC_CALL: long hInproc;
465 case WDT_REMOTE_CALL: remoteMETAFILEPICT *hRemote;
466 default: long hGlobal;
467 } userHMETAFILEPICT;
469 typedef [unique] userHMETAFILEPICT *wireHMETAFILEPICT;
471 typedef struct tagRemHENHMETAFILE {
472 unsigned long cbData;
473 [size_is(cbData)] byte data[];
474 } RemHENHMETAFILE;
476 typedef union _userHENHMETAFILE switch(long fContext) u {
477 case WDT_INPROC_CALL: long hInproc;
478 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
479 default: long hGlobal;
480 } userHENHMETAFILE;
482 typedef [unique] userHENHMETAFILE *wireHENHMETAFILE;
484 typedef struct tagRemHBITMAP
486 unsigned long cbData;
487 [size_is(cbData)] byte data[];
488 } RemHBITMAP;
490 typedef struct _userBITMAP {
491 LONG bmType;
492 LONG bmWidth;
493 LONG bmHeight;
494 LONG bmWidthBytes;
495 WORD bmPlanes;
496 WORD bmBitsPixel;
497 ULONG cbSize;
498 [size_is(cbSize)] byte pBuffer[];
499 } userBITMAP;
501 typedef union _userHBITMAP switch(long fContext) u {
502 case WDT_INPROC_CALL: long hInproc;
503 case WDT_REMOTE_CALL: userBITMAP *hRemote;
504 default: long hGlobal;
505 } userHBITMAP;
507 typedef [unique] userHBITMAP *wireHBITMAP;
509 typedef struct tagRemHPALETTE {
510 unsigned long cbData;
511 [size_is(cbData)] byte data[];
512 } RemHPALETTE;
514 typedef struct tagrpcLOGPALETTE {
515 WORD palVersion;
516 WORD palNumEntries;
517 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[];
518 } rpcLOGPALETTE;
520 typedef union _userHPALETTE switch(long fContext) u {
521 case WDT_INPROC_CALL: long hInproc;
522 case WDT_REMOTE_CALL: rpcLOGPALETTE *hRemote;
523 default: long hGlobal;
524 } userHPALETTE;
526 typedef [unique] userHPALETTE *wireHPALETTE;
528 cpp_quote("#if 0")
529 DECLARE_WIREM_HANDLE(HGLOBAL);
530 typedef HGLOBAL HLOCAL;
531 DECLARE_WIREM_HANDLE(HBITMAP);
532 DECLARE_WIREM_HANDLE(HPALETTE);
533 DECLARE_WIREM_HANDLE(HENHMETAFILE);
534 DECLARE_WIREM_HANDLE(HMETAFILE);
535 cpp_quote("#endif")
536 DECLARE_WIREM_HANDLE(HMETAFILEPICT);
538 /******************** GUID TYPES ********************/
540 cpp_quote("#if 0") /* for IDL only (C/C++ defs are in guiddef.h) */
541 typedef GUID *REFGUID;
542 typedef IID *REFIID;
543 typedef CLSID *REFCLSID;
544 typedef FMTID *REFFMTID;
545 cpp_quote("#endif")
547 /******************** MISC TYPES ********************/
549 typedef enum tagDVASPECT {
550 DVASPECT_CONTENT = 1,
551 DVASPECT_THUMBNAIL = 2,
552 DVASPECT_ICON = 4,
553 DVASPECT_DOCPRINT = 8
554 } DVASPECT;
556 typedef enum tagSTGC {
557 STGC_DEFAULT = 0,
558 STGC_OVERWRITE = 1,
559 STGC_ONLYIFCURRENT = 2,
560 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
561 STGC_CONSOLIDATE = 8
562 } STGC;
564 typedef enum tagSTGMOVE {
565 STGMOVE_MOVE = 0,
566 STGMOVE_COPY = 1,
567 STGMOVE_SHALLOWCOPY = 2
568 } STGMOVE;
570 typedef enum tagSTATFLAG {
571 STATFLAG_DEFAULT = 0,
572 STATFLAG_NONAME = 1,
573 STATFLAG_NOOPEN = 2
574 } STATFLAG;
576 /******************** OLE Automation ********************/
578 typedef double DATE;
580 cpp_quote("#if 0") /* for IDL only */
581 typedef struct tagCY {
582 LONGLONG int64;
583 } CY;
584 cpp_quote("#else") /* C/C++ defs */
585 cpp_quote("typedef union tagCY {")
586 cpp_quote(" struct {")
587 cpp_quote("#ifdef WORDS_BIGENDIAN")
588 cpp_quote(" LONG Hi;")
589 cpp_quote(" ULONG Lo;")
590 cpp_quote("#else")
591 cpp_quote(" ULONG Lo;")
592 cpp_quote(" LONG Hi;")
593 cpp_quote("#endif")
594 cpp_quote(" } DUMMYSTRUCTNAME;")
595 cpp_quote(" LONGLONG int64;")
596 cpp_quote("} CY;")
597 cpp_quote("#endif")
599 typedef CY *LPCY;
601 cpp_quote("#if 0") /* for IDL only */
602 typedef struct tagDEC {
603 USHORT wReserved;
604 BYTE scale;
605 BYTE sign;
606 ULONG Hi32;
607 ULONGLONG Lo64;
608 } DECIMAL;
609 cpp_quote("#else") /* C/C++ defs */
610 cpp_quote("typedef struct tagDEC {")
611 cpp_quote(" USHORT wReserved;")
612 cpp_quote(" union {")
613 cpp_quote(" struct {")
614 cpp_quote(" BYTE scale;")
615 cpp_quote(" BYTE sign;")
616 cpp_quote(" } DUMMYSTRUCTNAME;")
617 cpp_quote(" USHORT signscale;")
618 cpp_quote(" } DUMMYUNIONNAME;")
619 cpp_quote(" ULONG Hi32;")
620 cpp_quote(" union {")
621 cpp_quote(" struct {")
622 cpp_quote("#ifdef WORDS_BIGENDIAN")
623 cpp_quote(" ULONG Mid32;")
624 cpp_quote(" ULONG Lo32;")
625 cpp_quote("#else")
626 cpp_quote(" ULONG Lo32;")
627 cpp_quote(" ULONG Mid32;")
628 cpp_quote("#endif")
629 cpp_quote(" } DUMMYSTRUCTNAME1;")
630 cpp_quote(" ULONGLONG Lo64;")
631 cpp_quote(" } DUMMYUNIONNAME1;")
632 cpp_quote("} DECIMAL;")
633 cpp_quote("#endif")
634 cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)")
635 cpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
637 typedef DECIMAL *LPDECIMAL;
639 typedef [unique] FLAGGED_WORD_BLOB *wireBSTR;
640 typedef [wire_marshal(wireBSTR)] OLECHAR *BSTR;
641 typedef BSTR *LPBSTR;
643 typedef short VARIANT_BOOL;
644 typedef VARIANT_BOOL _VARIANT_BOOL;
645 cpp_quote("#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)")
646 cpp_quote("#define VARIANT_FALSE ((VARIANT_BOOL)0x0000)")
648 typedef struct tagBSTRBLOB {
649 ULONG cbSize;
650 [size_is(cbSize)] BYTE *pData;
651 } BSTRBLOB, *LPBSTRBLOB;
653 typedef struct tagBLOB {
654 ULONG cbSize;
655 [size_is(cbSize)] BYTE *pBlobData;
656 } BLOB, *LPBLOB;
658 typedef struct tagCLIPDATA {
659 ULONG cbSize;
660 long ulClipFmt;
661 [size_is(cbSize-sizeof(long))] BYTE *pClipData;
662 } CLIPDATA;
663 cpp_quote("#define CBPCLIPDATA(cb) ((cb).cbSize - sizeof((cb).ulClipFmt))")
665 typedef ULONG PROPID;
667 /******************** VARTYPE ********************/
669 typedef unsigned short VARTYPE;
670 enum VARENUM {
671 VT_EMPTY = 0,
672 VT_NULL = 1,
673 VT_I2 = 2,
674 VT_I4 = 3,
675 VT_R4 = 4,
676 VT_R8 = 5,
677 VT_CY = 6,
678 VT_DATE = 7,
679 VT_BSTR = 8,
680 VT_DISPATCH = 9,
681 VT_ERROR = 10,
682 VT_BOOL = 11,
683 VT_VARIANT = 12,
684 VT_UNKNOWN = 13,
685 VT_DECIMAL = 14,
686 VT_I1 = 16,
687 VT_UI1 = 17,
688 VT_UI2 = 18,
689 VT_UI4 = 19,
690 VT_I8 = 20,
691 VT_UI8 = 21,
692 VT_INT = 22,
693 VT_UINT = 23,
694 VT_VOID = 24,
695 VT_HRESULT = 25,
696 VT_PTR = 26,
697 VT_SAFEARRAY = 27,
698 VT_CARRAY = 28,
699 VT_USERDEFINED = 29,
700 VT_LPSTR = 30,
701 VT_LPWSTR = 31,
702 VT_RECORD = 36,
703 VT_INT_PTR = 37,
704 VT_UINT_PTR = 38,
705 VT_FILETIME = 64,
706 VT_BLOB = 65,
707 VT_STREAM = 66,
708 VT_STORAGE = 67,
709 VT_STREAMED_OBJECT = 68,
710 VT_STORED_OBJECT = 69,
711 VT_BLOB_OBJECT = 70,
712 VT_CF = 71,
713 VT_CLSID = 72,
714 VT_BSTR_BLOB = 0x0fff,
715 VT_VECTOR = 0x1000,
716 VT_ARRAY = 0x2000,
717 VT_BYREF = 0x4000,
718 VT_RESERVED = 0x8000,
719 VT_ILLEGAL = 0xffff,
720 VT_ILLEGALMASKED = 0x0fff,
721 VT_TYPEMASK = 0x0fff
724 } /* interface IWinTypes */