Program Files directory should not be in windows directory.
[wine/multimedia.git] / include / wtypes.idl
blobf0302457bb52e999810d502a40d70752db87fae1
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, *PPOINTL;
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 cpp_quote("#if 0") /* for IDL only */
188 typedef double DOUBLE;
189 cpp_quote("#else")
190 cpp_quote("typedef double DECLSPEC_ALIGN(8) DOUBLE;")
191 cpp_quote("#endif")
193 cpp_quote("#ifndef _PALETTEENTRY_DEFINED")
194 cpp_quote("#define _PALETTEENTRY_DEFINED")
195 typedef struct tagPALETTEENTRY {
196 BYTE peRed;
197 BYTE peGreen;
198 BYTE peBlue;
199 BYTE peFlags;
200 } PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY;
201 cpp_quote("#endif")
203 cpp_quote("#ifndef _LOGPALETTE_DEFINED")
204 cpp_quote("#define _LOGPALETTE_DEFINED")
205 typedef struct tagLOGPALETTE
207 WORD palVersion;
208 WORD palNumEntries;
209 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[*];
210 } LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE;
211 cpp_quote("#endif")
213 cpp_quote("#ifndef _FILETIME_")
214 cpp_quote("#define _FILETIME_")
215 typedef struct _FILETIME {
216 DWORD dwLowDateTime;
217 DWORD dwHighDateTime;
218 } FILETIME, *PFILETIME, *LPFILETIME;
219 cpp_quote("#endif")
221 cpp_quote("#ifndef _TEXTMETRIC_DEFINED")
222 cpp_quote("#define _TEXTMETRIC_DEFINED")
223 typedef struct
225 LONG tmHeight;
226 LONG tmAscent;
227 LONG tmDescent;
228 LONG tmInternalLeading;
229 LONG tmExternalLeading;
230 LONG tmAveCharWidth;
231 LONG tmMaxCharWidth;
232 LONG tmWeight;
233 LONG tmOverhang;
234 LONG tmDigitizedAspectX;
235 LONG tmDigitizedAspectY;
236 BYTE tmFirstChar;
237 BYTE tmLastChar;
238 BYTE tmDefaultChar;
239 BYTE tmBreakChar;
240 BYTE tmItalic;
241 BYTE tmUnderlined;
242 BYTE tmStruckOut;
243 BYTE tmPitchAndFamily;
244 BYTE tmCharSet;
245 } TEXTMETRICA, *LPTEXTMETRICA, *PTEXTMETRICA;
247 typedef struct
249 LONG tmHeight;
250 LONG tmAscent;
251 LONG tmDescent;
252 LONG tmInternalLeading;
253 LONG tmExternalLeading;
254 LONG tmAveCharWidth;
255 LONG tmMaxCharWidth;
256 LONG tmWeight;
257 LONG tmOverhang;
258 LONG tmDigitizedAspectX;
259 LONG tmDigitizedAspectY;
260 WCHAR tmFirstChar;
261 WCHAR tmLastChar;
262 WCHAR tmDefaultChar;
263 WCHAR tmBreakChar;
264 BYTE tmItalic;
265 BYTE tmUnderlined;
266 BYTE tmStruckOut;
267 BYTE tmPitchAndFamily;
268 BYTE tmCharSet;
269 } TEXTMETRICW, *LPTEXTMETRICW, *PTEXTMETRICW;
270 cpp_quote("#endif")
272 /******************** BASIC COM/OLE TYPES ********************/
274 typedef WCHAR OLECHAR;
275 typedef [string] OLECHAR *LPOLESTR;
276 typedef [string] const OLECHAR *LPCOLESTR;
277 cpp_quote("#ifndef __WINESRC__")
278 cpp_quote("#define OLESTR(str) L##str")
279 cpp_quote("#endif")
281 typedef LONG SCODE;
283 typedef struct _COAUTHIDENTITY {
284 [size_is(UserLength+1)] USHORT *User;
285 ULONG UserLength;
286 [size_is(DomainLength+1)] USHORT *Domain;
287 ULONG DomainLength;
288 [size_is(PasswordLength+1)] USHORT *Password;
289 ULONG PasswordLength;
290 ULONG Flags;
291 } COAUTHIDENTITY;
293 typedef struct _COAUTHINFO {
294 DWORD dwAuthnSvc;
295 DWORD dwAuthzSvc;
296 LPWSTR pwszServerPrincName;
297 DWORD dwAuthnLevel;
298 DWORD dwImpersonationLevel;
299 COAUTHIDENTITY *pAuthIdentityData;
300 DWORD dwCapabilities;
301 } COAUTHINFO;
303 /* FIXME: COSERVERINFO was in Wine's pre-WIDL wtypes.h, but should be in objidl.idl */
304 typedef struct _COSERVERINFO {
305 DWORD dwReserved1;
306 LPWSTR pwszName;
307 COAUTHINFO *pAuthInfo;
308 DWORD dwReserved2;
309 } COSERVERINFO;
311 typedef enum tagMEMCTX {
312 MEMCTX_TASK = 1,
313 MEMCTX_SHARED = 2,
314 MEMCTX_MACSYSTEM = 3,
315 MEMCTX_UNKNOWN = -1,
316 MEMCTX_SAME = -2
317 } MEMCTX;
319 cpp_quote("#ifndef _ROTFLAGS_DEFINED")
320 cpp_quote("#define _ROTFLAGS_DEFINED")
321 cpp_quote("#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1")
322 cpp_quote("#define ROTFLAGS_ALLOWANYCLIENT 0x2")
323 cpp_quote("#endif")
325 typedef enum tagCLSCTX {
326 CLSCTX_INPROC_SERVER = 0x1,
327 CLSCTX_INPROC_HANDLER = 0x2,
328 CLSCTX_LOCAL_SERVER = 0x4,
329 CLSCTX_INPROC_SERVER16 = 0x8,
330 CLSCTX_REMOTE_SERVER = 0x10,
331 CLSCTX_INPROC_HANDLER16 = 0x20,
332 CLSCTX_INPROC_SERVERX86 = 0x40,
333 CLSCTX_INPROC_HANDLERX86 = 0x80,
334 CLSCTX_ESERVER_HANDLER = 0x100,
335 CLSCTX_NO_CODE_DOWNLOAD = 0x400,
336 CLSCTX_NO_CUSTOM_MARSHAL = 0x1000,
337 CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
338 CLSCTX_NO_FAILURE_LOG = 0x4000,
339 CLSCTX_DISABLE_AAA = 0x8000,
340 CLSCTX_ENABLE_AAA = 0x10000,
341 CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000
342 } CLSCTX;
344 cpp_quote("#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)")
345 cpp_quote("#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
346 cpp_quote("#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
348 typedef enum tagMSHLFLAGS {
349 MSHLFLAGS_NORMAL = 0,
350 MSHLFLAGS_TABLESTRONG = 1,
351 MSHLFLAGS_TABLEWEAK = 2,
352 MSHLFLAGS_NOPING = 4
353 } MSHLFLAGS;
355 typedef enum tagMSHCTX {
356 MSHCTX_LOCAL = 0,
357 MSHCTX_NOSHAREDMEM = 1,
358 MSHCTX_DIFFERENTMACHINE = 2,
359 MSHCTX_INPROC = 3,
360 MSHCTX_CROSSCTX = 4
361 } MSHCTX;
363 /******************** BLOB TYPES ********************/
365 typedef struct _BYTE_BLOB {
366 unsigned long clSize;
367 [size_is(clSize)] byte abData[];
368 } BYTE_BLOB;
369 typedef [unique] BYTE_BLOB *UP_BYTE_BLOB;
371 typedef struct _FLAGGED_BYTE_BLOB {
372 unsigned long fFlags;
373 unsigned long clSize;
374 [size_is(clSize)] byte abData[];
375 } FLAGGED_BYTE_BLOB;
376 typedef [unique] FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB;
378 typedef struct _FLAGGED_WORD_BLOB {
379 unsigned long fFlags;
380 unsigned long clSize;
381 [size_is(clSize)] unsigned short asData[];
382 } FLAGGED_WORD_BLOB;
383 typedef [unique] FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB;
385 typedef struct _BYTE_SIZEDARR {
386 unsigned long clSize;
387 [size_is(clSize)] byte *pData;
388 } BYTE_SIZEDARR;
390 typedef struct _SHORT_SIZEDARR {
391 unsigned long clSize;
392 [size_is(clSize)] unsigned short *pData;
393 } WORD_SIZEDARR;
395 typedef struct _LONG_SIZEDARR {
396 unsigned long clSize;
397 [size_is(clSize)] unsigned long *pData;
398 } DWORD_SIZEDARR;
400 typedef struct _HYPER_SIZEDARR {
401 unsigned long clSize;
402 [size_is(clSize)] hyper *pData;
403 } HYPER_SIZEDARR;
405 /******************** GDI TYPES ********************/
407 const unsigned long WDT_INPROC_CALL = 0x48746457;
408 const unsigned long WDT_REMOTE_CALL = 0x52746457;
410 typedef union _userCLIPFORMAT switch(long fContext) u {
411 case WDT_INPROC_CALL: DWORD dwValue;
412 case WDT_REMOTE_CALL: LPWSTR pwszName;
413 } userCLIPFORMAT;
415 typedef [unique] userCLIPFORMAT *wireCLIPFORMAT;
416 typedef [wire_marshal(wireCLIPFORMAT)] WORD CLIPFORMAT;
418 typedef struct tagRemHGLOBAL {
419 long fNullHGlobal;
420 unsigned long cbData;
421 [size_is(cbData)] byte data[];
422 } RemHGLOBAL;
424 typedef union _userHGLOBAL switch(long fContext) u {
425 case WDT_INPROC_CALL: long hInproc;
426 case WDT_REMOTE_CALL: FLAGGED_BYTE_BLOB *hRemote;
427 default: long hGlobal;
428 } userHGLOBAL;
430 typedef [unique] userHGLOBAL *wireHGLOBAL;
432 typedef struct tagRemHMETAFILEPICT {
433 long mm;
434 long xExt;
435 long yExt;
436 unsigned long cbData;
437 [size_is(cbData)] byte data[];
438 } RemHMETAFILEPICT;
440 typedef union _userHMETAFILE switch(long fContext) u {
441 case WDT_INPROC_CALL: long hInproc;
442 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
443 default: long hGlobal;
444 } userHMETAFILE;
446 typedef [unique] userHMETAFILE *wireHMETAFILE;
448 typedef struct _remoteMETAFILEPICT {
449 long mm;
450 long xExt;
451 long yExt;
452 userHMETAFILE *hMF;
453 } remoteMETAFILEPICT;
455 typedef union _userHMETAFILEPICT switch(long fContext) u {
456 case WDT_INPROC_CALL: long hInproc;
457 case WDT_REMOTE_CALL: remoteMETAFILEPICT *hRemote;
458 default: long hGlobal;
459 } userHMETAFILEPICT;
461 typedef [unique] userHMETAFILEPICT *wireHMETAFILEPICT;
463 typedef struct tagRemHENHMETAFILE {
464 unsigned long cbData;
465 [size_is(cbData)] byte data[];
466 } RemHENHMETAFILE;
468 typedef union _userHENHMETAFILE switch(long fContext) u {
469 case WDT_INPROC_CALL: long hInproc;
470 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
471 default: long hGlobal;
472 } userHENHMETAFILE;
474 typedef [unique] userHENHMETAFILE *wireHENHMETAFILE;
476 typedef struct tagRemHBITMAP
478 unsigned long cbData;
479 [size_is(cbData)] byte data[];
480 } RemHBITMAP;
482 typedef struct _userBITMAP {
483 LONG bmType;
484 LONG bmWidth;
485 LONG bmHeight;
486 LONG bmWidthBytes;
487 WORD bmPlanes;
488 WORD bmBitsPixel;
489 ULONG cbSize;
490 [size_is(cbSize)] byte pBuffer[];
491 } userBITMAP;
493 typedef union _userHBITMAP switch(long fContext) u {
494 case WDT_INPROC_CALL: long hInproc;
495 case WDT_REMOTE_CALL: userBITMAP *hRemote;
496 default: long hGlobal;
497 } userHBITMAP;
499 typedef [unique] userHBITMAP *wireHBITMAP;
501 typedef struct tagRemHPALETTE {
502 unsigned long cbData;
503 [size_is(cbData)] byte data[];
504 } RemHPALETTE;
506 typedef struct tagrpcLOGPALETTE {
507 WORD palVersion;
508 WORD palNumEntries;
509 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[];
510 } rpcLOGPALETTE;
512 typedef union _userHPALETTE switch(long fContext) u {
513 case WDT_INPROC_CALL: long hInproc;
514 case WDT_REMOTE_CALL: rpcLOGPALETTE *hRemote;
515 default: long hGlobal;
516 } userHPALETTE;
518 typedef [unique] userHPALETTE *wireHPALETTE;
520 cpp_quote("#if 0")
521 DECLARE_WIREM_HANDLE(HGLOBAL);
522 typedef HGLOBAL HLOCAL;
523 DECLARE_WIREM_HANDLE(HBITMAP);
524 DECLARE_WIREM_HANDLE(HPALETTE);
525 DECLARE_WIREM_HANDLE(HENHMETAFILE);
526 DECLARE_WIREM_HANDLE(HMETAFILE);
527 cpp_quote("#endif")
528 DECLARE_WIREM_HANDLE(HMETAFILEPICT);
530 /******************** GUID TYPES ********************/
532 cpp_quote("#if 0") /* for IDL only (C/C++ defs are in guiddef.h) */
533 typedef GUID *REFGUID;
534 typedef IID *REFIID;
535 typedef CLSID *REFCLSID;
536 typedef FMTID *REFFMTID;
537 cpp_quote("#endif")
539 /******************** MISC TYPES ********************/
541 typedef enum tagDVASPECT {
542 DVASPECT_CONTENT = 1,
543 DVASPECT_THUMBNAIL = 2,
544 DVASPECT_ICON = 4,
545 DVASPECT_DOCPRINT = 8
546 } DVASPECT;
548 typedef enum tagSTGC {
549 STGC_DEFAULT = 0,
550 STGC_OVERWRITE = 1,
551 STGC_ONLYIFCURRENT = 2,
552 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
553 STGC_CONSOLIDATE = 8
554 } STGC;
556 typedef enum tagSTGMOVE {
557 STGMOVE_MOVE = 0,
558 STGMOVE_COPY = 1,
559 STGMOVE_SHALLOWCOPY = 2
560 } STGMOVE;
562 typedef enum tagSTATFLAG {
563 STATFLAG_DEFAULT = 0,
564 STATFLAG_NONAME = 1,
565 STATFLAG_NOOPEN = 2
566 } STATFLAG;
568 /******************** OLE Automation ********************/
570 cpp_quote("#if 0") /* for IDL only */
571 typedef double DATE;
572 cpp_quote("#else")
573 cpp_quote("typedef double DECLSPEC_ALIGN(8) DATE;")
574 cpp_quote("#endif")
576 cpp_quote("#if 0") /* for IDL only */
577 typedef struct tagCY {
578 LONGLONG int64;
579 } CY;
580 cpp_quote("#else") /* C/C++ defs */
581 cpp_quote("#ifndef _tagCY_DEFINED")
582 cpp_quote("#define _tagCY_DEFINED")
583 cpp_quote("typedef union tagCY {")
584 cpp_quote(" struct {")
585 cpp_quote("#ifdef WORDS_BIGENDIAN")
586 cpp_quote(" LONG Hi;")
587 cpp_quote(" ULONG Lo;")
588 cpp_quote("#else")
589 cpp_quote(" ULONG Lo;")
590 cpp_quote(" LONG Hi;")
591 cpp_quote("#endif")
592 cpp_quote(" } DUMMYSTRUCTNAME;")
593 cpp_quote(" LONGLONG int64;")
594 cpp_quote("} CY;")
595 cpp_quote("#endif")
596 cpp_quote("#endif")
598 typedef CY *LPCY;
600 cpp_quote("#if 0") /* for IDL only */
601 typedef struct tagDEC {
602 USHORT wReserved;
603 BYTE scale;
604 BYTE sign;
605 ULONG Hi32;
606 ULONGLONG Lo64;
607 } DECIMAL;
608 cpp_quote("#else") /* C/C++ defs */
609 cpp_quote("typedef struct tagDEC {")
610 cpp_quote(" USHORT wReserved;")
611 cpp_quote(" union {")
612 cpp_quote(" struct {")
613 cpp_quote(" BYTE scale;")
614 cpp_quote(" BYTE sign;")
615 cpp_quote(" } DUMMYSTRUCTNAME;")
616 cpp_quote(" USHORT signscale;")
617 cpp_quote(" } DUMMYUNIONNAME;")
618 cpp_quote(" ULONG Hi32;")
619 cpp_quote(" union {")
620 cpp_quote(" struct {")
621 cpp_quote("#ifdef WORDS_BIGENDIAN")
622 cpp_quote(" ULONG Mid32;")
623 cpp_quote(" ULONG Lo32;")
624 cpp_quote("#else")
625 cpp_quote(" ULONG Lo32;")
626 cpp_quote(" ULONG Mid32;")
627 cpp_quote("#endif")
628 cpp_quote(" } DUMMYSTRUCTNAME1;")
629 cpp_quote(" ULONGLONG Lo64;")
630 cpp_quote(" } DUMMYUNIONNAME1;")
631 cpp_quote("} DECIMAL;")
632 cpp_quote("#endif")
633 cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)")
634 cpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
636 typedef DECIMAL *LPDECIMAL;
638 typedef [unique] FLAGGED_WORD_BLOB *wireBSTR;
639 typedef [wire_marshal(wireBSTR)] OLECHAR *BSTR;
640 typedef BSTR *LPBSTR;
642 typedef short VARIANT_BOOL;
643 typedef VARIANT_BOOL _VARIANT_BOOL;
644 cpp_quote("#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)")
645 cpp_quote("#define VARIANT_FALSE ((VARIANT_BOOL)0x0000)")
647 typedef struct tagBSTRBLOB {
648 ULONG cbSize;
649 [size_is(cbSize)] BYTE *pData;
650 } BSTRBLOB, *LPBSTRBLOB;
652 cpp_quote("#ifndef _tagBLOB_DEFINED")
653 cpp_quote("#define _tagBLOB_DEFINED")
654 cpp_quote("#define _BLOB_DEFINED")
655 cpp_quote("#define _LPBLOB_DEFINED")
656 typedef struct tagBLOB {
657 ULONG cbSize;
658 [size_is(cbSize)] BYTE *pBlobData;
659 } BLOB, *LPBLOB;
660 cpp_quote("#endif")
662 typedef struct tagCLIPDATA {
663 ULONG cbSize;
664 long ulClipFmt;
665 [size_is(cbSize-sizeof(long))] BYTE *pClipData;
666 } CLIPDATA;
667 cpp_quote("#define CBPCLIPDATA(cb) ((cb).cbSize - sizeof((cb).ulClipFmt))")
669 typedef ULONG PROPID;
671 /******************** VARTYPE ********************/
673 typedef unsigned short VARTYPE;
674 enum VARENUM {
675 VT_EMPTY = 0,
676 VT_NULL = 1,
677 VT_I2 = 2,
678 VT_I4 = 3,
679 VT_R4 = 4,
680 VT_R8 = 5,
681 VT_CY = 6,
682 VT_DATE = 7,
683 VT_BSTR = 8,
684 VT_DISPATCH = 9,
685 VT_ERROR = 10,
686 VT_BOOL = 11,
687 VT_VARIANT = 12,
688 VT_UNKNOWN = 13,
689 VT_DECIMAL = 14,
690 VT_I1 = 16,
691 VT_UI1 = 17,
692 VT_UI2 = 18,
693 VT_UI4 = 19,
694 VT_I8 = 20,
695 VT_UI8 = 21,
696 VT_INT = 22,
697 VT_UINT = 23,
698 VT_VOID = 24,
699 VT_HRESULT = 25,
700 VT_PTR = 26,
701 VT_SAFEARRAY = 27,
702 VT_CARRAY = 28,
703 VT_USERDEFINED = 29,
704 VT_LPSTR = 30,
705 VT_LPWSTR = 31,
706 VT_RECORD = 36,
707 VT_INT_PTR = 37,
708 VT_UINT_PTR = 38,
709 VT_FILETIME = 64,
710 VT_BLOB = 65,
711 VT_STREAM = 66,
712 VT_STORAGE = 67,
713 VT_STREAMED_OBJECT = 68,
714 VT_STORED_OBJECT = 69,
715 VT_BLOB_OBJECT = 70,
716 VT_CF = 71,
717 VT_CLSID = 72,
718 VT_BSTR_BLOB = 0x0fff,
719 VT_VECTOR = 0x1000,
720 VT_ARRAY = 0x2000,
721 VT_BYREF = 0x4000,
722 VT_RESERVED = 0x8000,
723 VT_ILLEGAL = 0xffff,
724 VT_ILLEGALMASKED = 0x0fff,
725 VT_TYPEMASK = 0x0fff
728 } /* interface IWinTypes */