28cpp_quote("#ifdef _MSC_VER")
29cpp_quote("#pragma warning(push)")
30cpp_quote("#pragma warning(disable:4201)")
31cpp_quote("#pragma warning(disable:4820)")
35 uuid(D3980A60-910C-1068-9341-00DD010F2F1C),
37 pointer_default(unique)
43/******************** BASIC WIN32 TYPES ********************/
44cpp_quote("#if 0
") /* don't redefine these */
46typedef unsigned char BYTE;
47typedef unsigned short WORD;
48typedef unsigned long DWORD;
50typedef unsigned char UCHAR;
52typedef unsigned int UINT;
54typedef unsigned short USHORT;
56typedef unsigned long ULONG;
59typedef void *PVOID, *LPVOID;
61typedef DWORD *LPDWORD;
64typedef [string] CHAR *LPSTR;
65typedef [string] const CHAR *LPCSTR;
68typedef [string] WCHAR *LPWSTR;
69typedef [string] const WCHAR *LPCWSTR;
71typedef boolean BOOLEAN;
73typedef DWORD COLORREF;
76#define DECLARE_HANDLE(name) typedef void *name
77#define DECLARE_WIREM_HANDLE(name) typedef [wire_marshal(wire##name)] void*name
79DECLARE_HANDLE(HMODULE);
80DECLARE_HANDLE(HINSTANCE);
90DECLARE_HANDLE(HWINSTA);
92DECLARE_HANDLE(HGDIOBJ);
96typedef LONG_PTR LRESULT;
100typedef USHORT LANGID;
102typedef unsigned __int64 DWORDLONG;
103typedef __int64 LONGLONG;
104typedef unsigned __int64 ULONGLONG;
106typedef struct _LARGE_INTEGER {
110typedef struct _ULARGE_INTEGER {
114typedef struct _SID_IDENTIFIER_AUTHORITY {
116} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY;
120 UCHAR SubAuthorityCount;
121 SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
122 [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
125typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
136typedef struct _SECURITY_DESCRIPTOR {
139 SECURITY_DESCRIPTOR_CONTROL Control;
144} SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
146typedef struct _SECURITY_ATTRIBUTES
149 LPVOID lpSecurityDescriptor;
151} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
153typedef struct tagSIZE
157} SIZE, *PSIZE, *LPSIZE;
158typedef SIZE SIZEL, *PSIZEL, *LPSIZEL;
160typedef struct tagPOINT
164} POINT, *PPOINT, *LPPOINT;
166typedef struct _POINTL
172typedef struct tagRECT
178} RECT, *PRECT, *LPRECT;
179typedef const RECT *LPCRECT;
187} RECTL, *PRECTL, *LPRECTL;
188typedef const RECTL *LPCRECTL;
190typedef UINT_PTR WPARAM;
191typedef LONG_PTR LPARAM;
195cpp_quote("#ifdef _MSC_VER") /* for IDL and MSVC only */
196typedef double DOUBLE;
198cpp_quote("typedef double DECLSPEC_ALIGN(8) DOUBLE;")
201cpp_quote("#ifndef _PALETTEENTRY_DEFINED")
202cpp_quote("#define _PALETTEENTRY_DEFINED")
203typedef struct tagPALETTEENTRY {
208} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY;
211cpp_quote("#ifndef _LOGPALETTE_DEFINED")
212cpp_quote("#define _LOGPALETTE_DEFINED")
213typedef struct tagLOGPALETTE
217 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[*];
218} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE;
221cpp_quote("#ifndef _SYSTEMTIME_")
222cpp_quote("#define _SYSTEMTIME_")
223typedef struct _SYSTEMTIME{
232} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
235cpp_quote("#ifndef _FILETIME_")
236cpp_quote("#define _FILETIME_")
237typedef struct _FILETIME {
239 DWORD dwHighDateTime;
240} FILETIME, *PFILETIME, *LPFILETIME;
243cpp_quote("#ifndef _TEXTMETRIC_DEFINED")
244cpp_quote("#define _TEXTMETRIC_DEFINED")
245typedef struct tagTEXTMETRICA
250 LONG tmInternalLeading;
251 LONG tmExternalLeading;
256 LONG tmDigitizedAspectX;
257 LONG tmDigitizedAspectY;
265 BYTE tmPitchAndFamily;
267} TEXTMETRICA, *LPTEXTMETRICA, *PTEXTMETRICA;
269typedef struct tagTEXTMETRICW
274 LONG tmInternalLeading;
275 LONG tmExternalLeading;
280 LONG tmDigitizedAspectX;
281 LONG tmDigitizedAspectY;
289 BYTE tmPitchAndFamily;
291} TEXTMETRICW, *LPTEXTMETRICW, *PTEXTMETRICW;
294/******************** BASIC COM/OLE TYPES ********************/
296typedef WCHAR OLECHAR;
297typedef [string] OLECHAR *LPOLESTR;
298typedef [string] const OLECHAR *LPCOLESTR;
299cpp_quote("#ifndef __WINESRC__")
300cpp_quote("#define OLESTR(str) L##str")
305typedef struct _COAUTHIDENTITY {
306 [size_is(UserLength+1)] USHORT *User;
308 [size_is(DomainLength+1)] USHORT *Domain;
310 [size_is(PasswordLength+1)] USHORT *Password;
311 ULONG PasswordLength;
315typedef struct _COAUTHINFO {
318 LPWSTR pwszServerPrincName;
320 DWORD dwImpersonationLevel;
321 COAUTHIDENTITY *pAuthIdentityData;
322 DWORD dwCapabilities;
325typedef enum tagMEMCTX {
328 MEMCTX_MACSYSTEM = 3,
333cpp_quote("#ifndef _ROT_COMPARE_MAX_DEFINED")
334cpp_quote("#define _ROT_COMPARE_MAX_DEFINED")
335cpp_quote("#define ROT_COMPARE_MAX 2048")
338cpp_quote("#ifndef _ROTFLAGS_DEFINED")
339cpp_quote("#define _ROTFLAGS_DEFINED")
340cpp_quote("#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1")
341cpp_quote("#define ROTFLAGS_ALLOWANYCLIENT 0x2")
344typedef enum tagCLSCTX {
345 CLSCTX_INPROC_SERVER = 0x1,
346 CLSCTX_INPROC_HANDLER = 0x2,
347 CLSCTX_LOCAL_SERVER = 0x4,
348 CLSCTX_INPROC_SERVER16 = 0x8,
349 CLSCTX_REMOTE_SERVER = 0x10,
350 CLSCTX_INPROC_HANDLER16 = 0x20,
351 CLSCTX_INPROC_SERVERX86 = 0x40,
352 CLSCTX_INPROC_HANDLERX86 = 0x80,
353 CLSCTX_ESERVER_HANDLER = 0x100,
354 CLSCTX_NO_CODE_DOWNLOAD = 0x400,
355 CLSCTX_NO_CUSTOM_MARSHAL = 0x1000,
356 CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
357 CLSCTX_NO_FAILURE_LOG = 0x4000,
358 CLSCTX_DISABLE_AAA = 0x8000,
359 CLSCTX_ENABLE_AAA = 0x10000,
360 CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000
363cpp_quote("#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)")
364cpp_quote("#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
365cpp_quote("#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
367typedef enum tagMSHLFLAGS {
368 MSHLFLAGS_NORMAL = 0,
369 MSHLFLAGS_TABLESTRONG = 1,
370 MSHLFLAGS_TABLEWEAK = 2,
374typedef enum tagMSHCTX {
376 MSHCTX_NOSHAREDMEM = 1,
377 MSHCTX_DIFFERENTMACHINE = 2,
382/******************** BLOB TYPES ********************/
384typedef struct _BYTE_BLOB {
385 unsigned long clSize;
386 [size_is(clSize)] byte abData[];
388typedef [unique] BYTE_BLOB *UP_BYTE_BLOB;
390typedef struct _FLAGGED_BYTE_BLOB {
391 unsigned long fFlags;
392 unsigned long clSize;
393 [size_is(clSize)] byte abData[];
395typedef [unique] FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB;
397typedef struct _FLAGGED_WORD_BLOB {
398 unsigned long fFlags;
399 unsigned long clSize;
400 [size_is(clSize)] unsigned short asData[];
402typedef [unique] FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB;
404typedef struct _BYTE_SIZEDARR {
405 unsigned long clSize;
406 [size_is(clSize)] byte *pData;
409typedef struct _SHORT_SIZEDARR {
410 unsigned long clSize;
411 [size_is(clSize)] unsigned short *pData;
414typedef struct _LONG_SIZEDARR {
415 unsigned long clSize;
416 [size_is(clSize)] unsigned long *pData;
419typedef struct _HYPER_SIZEDARR {
420 unsigned long clSize;
421 [size_is(clSize)] hyper *pData;
424/******************** GDI TYPES ********************/
426const unsigned long WDT_INPROC_CALL = 0x48746457;
427const unsigned long WDT_REMOTE_CALL = 0x52746457;
428const unsigned long WDT_INPROC64_CALL = 0x50746457;
430typedef union _userCLIPFORMAT switch(long fContext) u {
431 case WDT_INPROC_CALL: DWORD dwValue;
432 case WDT_REMOTE_CALL: LPWSTR pwszName;
435typedef [unique] userCLIPFORMAT *wireCLIPFORMAT;
436typedef [wire_marshal(wireCLIPFORMAT)] WORD CLIPFORMAT;
438typedef struct tagRemHGLOBAL {
440 unsigned long cbData;
441 [size_is(cbData)] byte data[];
444typedef union _userHGLOBAL switch(long fContext) u {
445 case WDT_INPROC_CALL: long hInproc;
446 case WDT_REMOTE_CALL: FLAGGED_BYTE_BLOB *hRemote;
447 case WDT_INPROC64_CALL: __int64 hInproc64;
450typedef [unique] userHGLOBAL *wireHGLOBAL;
452typedef struct tagRemHMETAFILEPICT {
456 unsigned long cbData;
457 [size_is(cbData)] byte data[];
460typedef union _userHMETAFILE switch(long fContext) u {
461 case WDT_INPROC_CALL: long hInproc;
462 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
463 case WDT_INPROC64_CALL: __int64 hInproc64;
466typedef [unique] userHMETAFILE *wireHMETAFILE;
468typedef struct _remoteMETAFILEPICT {
475typedef union _userHMETAFILEPICT switch(long fContext) u {
476 case WDT_INPROC_CALL: long hInproc;
477 case WDT_REMOTE_CALL: remoteMETAFILEPICT *hRemote;
478 case WDT_INPROC64_CALL: __int64 hInproc64;
481typedef [unique] userHMETAFILEPICT *wireHMETAFILEPICT;
483typedef struct tagRemHENHMETAFILE {
484 unsigned long cbData;
485 [size_is(cbData)] byte data[];
488typedef union _userHENHMETAFILE switch(long fContext) u {
489 case WDT_INPROC_CALL: long hInproc;
490 case WDT_REMOTE_CALL: BYTE_BLOB *hRemote;
491 case WDT_INPROC64_CALL: __int64 hInproc64;
494typedef [unique] userHENHMETAFILE *wireHENHMETAFILE;
496typedef struct tagRemHBITMAP
498 unsigned long cbData;
499 [size_is(cbData)] byte data[];
502typedef struct _userBITMAP {
510 [size_is(cbSize)] byte pBuffer[];
513typedef union _userHBITMAP switch(long fContext) u {
514 case WDT_INPROC_CALL: long hInproc;
515 case WDT_REMOTE_CALL: userBITMAP *hRemote;
516 case WDT_INPROC64_CALL: __int64 hInproc64;
519typedef [unique] userHBITMAP *wireHBITMAP;
521typedef struct tagRemHPALETTE {
522 unsigned long cbData;
523 [size_is(cbData)] byte data[];
526typedef struct tagrpcLOGPALETTE {
529 [size_is(palNumEntries)] PALETTEENTRY palPalEntry[];
532typedef union _userHPALETTE switch(long fContext) u {
533 case WDT_INPROC_CALL: long hInproc;
534 case WDT_REMOTE_CALL: rpcLOGPALETTE *hRemote;
535 case WDT_INPROC64_CALL: __int64 hInproc64;
538typedef [unique] userHPALETTE *wireHPALETTE;
541DECLARE_WIREM_HANDLE(HGLOBAL);
542typedef HGLOBAL HLOCAL;
543DECLARE_WIREM_HANDLE(HBITMAP);
544DECLARE_WIREM_HANDLE(HPALETTE);
545DECLARE_WIREM_HANDLE(HENHMETAFILE);
546DECLARE_WIREM_HANDLE(HMETAFILE);
548DECLARE_WIREM_HANDLE(HMETAFILEPICT);
550typedef union _RemotableHandle switch (long fContext) u
552 case WDT_INPROC_CALL: long hInproc;
553 case WDT_REMOTE_CALL: long hRemote;
556typedef [unique] RemotableHandle *wireHACCEL;
557typedef [unique] RemotableHandle *wireHBRUSH;
558typedef [unique] RemotableHandle *wireHDC;
559typedef [unique] RemotableHandle *wireHFONT;
560typedef [unique] RemotableHandle *wireHICON;
561typedef [unique] RemotableHandle *wireHMENU;
562typedef [unique] RemotableHandle *wireHWND;
564cpp_quote("#if 0") /* for IDL only (C/C++ defs are in windef.h) */
565DECLARE_WIREM_HANDLE(HACCEL);
566DECLARE_WIREM_HANDLE(HBRUSH);
567DECLARE_WIREM_HANDLE(HDC);
568DECLARE_WIREM_HANDLE(HFONT);
569DECLARE_WIREM_HANDLE(HICON);
570DECLARE_WIREM_HANDLE(HMENU);
571DECLARE_WIREM_HANDLE(HWND);
573typedef HICON HCURSOR;
583} MSG, *PMSG, *NPMSG, *LPMSG;
587/******************** GUID TYPES ********************/
589cpp_quote("#if 0") /* for IDL only (C/C++ defs are in guiddef.h) */
590typedef GUID *REFGUID;
592typedef CLSID *REFCLSID;
593typedef FMTID *REFFMTID;
596/******************** MISC TYPES ********************/
598typedef enum tagDVASPECT {
599 DVASPECT_CONTENT = 1,
600 DVASPECT_THUMBNAIL = 2,
602 DVASPECT_DOCPRINT = 8
605typedef enum tagSTGC {
608 STGC_ONLYIFCURRENT = 2,
609 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
613typedef enum tagSTGMOVE {
616 STGMOVE_SHALLOWCOPY = 2
619typedef enum tagSTATFLAG {
620 STATFLAG_DEFAULT = 0,
625/******************** OLE Automation ********************/
627cpp_quote("#ifdef _MSC_VER") /* for IDL and MSVC only */
630cpp_quote("typedef double DECLSPEC_ALIGN(8) DATE;")
633cpp_quote("#if 0") /* for IDL only */
634typedef struct tagCY {
637cpp_quote("#else") /* C/C++ defs */
638cpp_quote("#ifndef _tagCY_DEFINED")
639cpp_quote("#define _tagCY_DEFINED")
640cpp_quote("typedef union tagCY {")
641cpp_quote(" struct {")
642cpp_quote("#ifdef WORDS_BIGENDIAN")
643cpp_quote(" LONG Hi;")
644cpp_quote(" ULONG Lo;")
646cpp_quote(" ULONG Lo;")
647cpp_quote(" LONG Hi;")
649cpp_quote(" } DUMMYSTRUCTNAME;")
650cpp_quote(" LONGLONG int64;")
657cpp_quote("#if 0") /* for IDL only */
658typedef struct tagDEC {
665cpp_quote("#else") /* C/C++ defs */
666cpp_quote("typedef struct tagDEC {")
667cpp_quote(" USHORT wReserved;")
669cpp_quote(" struct {")
670cpp_quote(" BYTE scale;")
671cpp_quote(" BYTE sign;")
672cpp_quote(" } DUMMYSTRUCTNAME;")
673cpp_quote(" USHORT signscale;")
674cpp_quote(" } DUMMYUNIONNAME;")
675cpp_quote(" ULONG Hi32;")
677cpp_quote(" struct {")
678cpp_quote("#ifdef WORDS_BIGENDIAN")
679cpp_quote(" ULONG Mid32;")
680cpp_quote(" ULONG Lo32;")
682cpp_quote(" ULONG Lo32;")
683cpp_quote(" ULONG Mid32;")
685cpp_quote(" } DUMMYSTRUCTNAME1;")
686cpp_quote(" ULONGLONG Lo64;")
687cpp_quote(" } DUMMYUNIONNAME1;")
688cpp_quote("} DECIMAL;")
690cpp_quote("#define DECIMAL_NEG ((BYTE)0x80)")
691cpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)&(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
693typedef DECIMAL *LPDECIMAL;
695typedef [unique] FLAGGED_WORD_BLOB *wireBSTR;
696typedef [wire_marshal(wireBSTR)] OLECHAR *BSTR;
699typedef short VARIANT_BOOL;
700typedef VARIANT_BOOL _VARIANT_BOOL;
701cpp_quote("#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)")
702cpp_quote("#define VARIANT_FALSE ((VARIANT_BOOL)0x0000)")
704typedef struct tagBSTRBLOB {
706 [size_is(cbSize)] BYTE *pData;
707} BSTRBLOB, *LPBSTRBLOB;
709cpp_quote("#ifndef _tagBLOB_DEFINED")
710cpp_quote("#define _tagBLOB_DEFINED")
711cpp_quote("#define _BLOB_DEFINED")
712cpp_quote("#define _LPBLOB_DEFINED")
713typedef struct tagBLOB {
715 [size_is(cbSize)] BYTE *pBlobData;
719typedef struct tagCLIPDATA {
722 [size_is(cbSize-sizeof(long))] BYTE *pClipData;
724cpp_quote("#define CBPCLIPDATA(cb) ((cb).cbSize - sizeof((cb).ulClipFmt))")
728/******************** VARTYPE ********************/
730typedef unsigned short VARTYPE;
770 VT_STREAMED_OBJECT = 68,
771 VT_STORED_OBJECT = 69,
775 VT_VERSIONED_STREAM= 73,
776 VT_BSTR_BLOB = 0x0fff,
780 VT_RESERVED = 0x8000,
782 VT_ILLEGALMASKED = 0x0fff,
786typedef struct tagCSPLATFORM
791 DWORD dwProcessorArch;
794typedef struct tagQUERYCONTEXT
803typedef [v1_enum] enum tagTYSPEC
814typedef union switch(DWORD tyspec)
820 case TYSPEC_MIMETYPE:
824 case TYSPEC_FILENAME:
826 case TYSPEC_PACKAGENAME:
829 LPOLESTR pPackageName;
832 case TYSPEC_OBJECTID:
840cpp_quote("#ifndef PROPERTYKEY_DEFINED")
841cpp_quote("#define PROPERTYKEY_DEFINED")
842typedef struct _tagpropertykey
849} /* interface IWinTypes */
851cpp_quote("#ifdef _MSC_VER")
852cpp_quote("#pragma warning(pop)")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const