2 * Defines the basic types used by COM interfaces.
5 #ifndef __WINE_WTYPES_H
6 #define __WINE_WTYPES_H
13 typedef WORD CLIPFORMAT
, *LPCLIPFORMAT
;
15 /* FIXME: does not belong here */
16 typedef CHAR OLECHAR16
;
17 typedef LPSTR LPOLESTR16
;
18 typedef LPCSTR LPCOLESTR16
;
19 typedef OLECHAR16
*BSTR16
;
20 typedef BSTR16
*LPBSTR16
;
23 typedef WCHAR OLECHAR
;
24 typedef LPWSTR LPOLESTR
;
25 typedef LPCWSTR LPCOLESTR
;
26 typedef OLECHAR
*BSTR
;
29 #define OLESTR(str) WINE_UNICODE_TEXT(str)
34 typedef __uint64 DWORDLONG
, *PDWORDLONG
;
39 typedef __int64 LONGLONG
, *PLONGLONG
;
40 typedef __uint64 ULONGLONG
, *PULONGLONG
;
43 typedef enum tagDVASPECT
46 DVASPECT_THUMBNAIL
= 2,
55 STGC_ONLYIFCURRENT
= 2,
56 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE
= 4,
60 typedef enum tagSTGMOVE
64 STGMOVE_SHALLOWCOPY
= 2
68 typedef struct _COAUTHIDENTITY
79 typedef struct _COAUTHINFO
83 LPWSTR pwszServerPrincName
;
85 DWORD dwImpersonationLevel
;
86 COAUTHIDENTITY
* pAuthIdentityData
;
90 typedef struct _COSERVERINFO
94 COAUTHINFO
* pAuthInfo
;
98 typedef enum tagCLSCTX
100 CLSCTX_INPROC_SERVER
= 0x1,
101 CLSCTX_INPROC_HANDLER
= 0x2,
102 CLSCTX_LOCAL_SERVER
= 0x4,
103 CLSCTX_INPROC_SERVER16
= 0x8,
104 CLSCTX_REMOTE_SERVER
= 0x10,
105 CLSCTX_INPROC_HANDLER16
= 0x20,
106 CLSCTX_INPROC_SERVERX86
= 0x40,
107 CLSCTX_INPROC_HANDLERX86
= 0x80,
108 CLSCTX_ESERVER_HANDLER
= 0x100
111 #define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)
112 #define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
113 #define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
115 typedef enum tagMSHLFLAGS
117 MSHLFLAGS_NORMAL
= 0,
118 MSHLFLAGS_TABLESTRONG
= 1,
119 MSHLFLAGS_TABLEWEAK
= 2,
123 typedef enum tagMSHCTX
126 MSHCTX_NOSHAREDMEM
= 1,
127 MSHCTX_DIFFERENTMACHINE
= 2,
131 typedef unsigned short VARTYPE
;
133 typedef ULONG PROPID
;
135 #ifndef _tagBLOB_DEFINED
136 #define _tagBLOB_DEFINED
137 #define _BLOB_DEFINED
138 #define _LPBLOB_DEFINED
139 typedef struct tagBLOB
146 #ifndef _tagCY_DEFINED
147 #define _tagCY_DEFINED
149 typedef union tagCY
{
154 #else /* defined(BIG_ENDIAN) */
157 #endif /* defined(BIG_ENDIAN) */
162 #endif /* _tagCY_DEFINED */
165 * 0 == FALSE and -1 == TRUE
167 #define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)
168 #define VARIANT_FALSE ((VARIANT_BOOL)0x0000)
169 typedef short VARIANT_BOOL
,_VARIANT_BOOL
;
171 typedef struct tagCLIPDATA
178 /* Macro to calculate the size of the above pClipData */
179 #define CBPCLIPDATA(clipdata) ( (clipdata).cbSize - sizeof((clipdata).ulClipFmt) )
185 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
189 DWORD dwHighDateTime
;
190 } FILETIME
, *LPFILETIME
;
191 #endif /* _FILETIME_ */
193 #ifndef _SECURITY_DEFINED
194 #define _SECURITY_DEFINED
198 } SID_IDENTIFIER_AUTHORITY
,*PSID_IDENTIFIER_AUTHORITY
;
200 typedef struct _SID
{
202 BYTE SubAuthorityCount
;
203 SID_IDENTIFIER_AUTHORITY IdentifierAuthority
;
204 DWORD SubAuthority
[1];
211 typedef struct _ACL
{
219 typedef USHORT SECURITY_DESCRIPTOR_CONTROL
, *PSECURITY_DESCRIPTOR_CONTROL
;
221 /* The security descriptor structure */
225 SECURITY_DESCRIPTOR_CONTROL Control
;
230 } SECURITY_DESCRIPTOR
, *PSECURITY_DESCRIPTOR
;
232 #endif /* _SECURITY_DEFINED */
234 #ifndef _ROTFLAGS_DEFINED
235 #define _ROTFLAGS_DEFINED
236 #define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1
237 #define ROTFLAGS_ALLOWANYCLIENT 0x2
238 #endif /* !defined(_ROTFLAGS_DEFINED) */
240 #endif /* __WINE_WTYPES_H */