Added unicode window proc for the listbox control.
[wine/hacks.git] / include / wtypes.h
blobfa578b164dbf874965a53e0210b49588df1b3c4f
1 /*
2 * Defines the basic types used by COM interfaces.
3 */
5 #ifndef __WINE_WTYPES_H
6 #define __WINE_WTYPES_H
8 #include "basetsd.h"
9 #include "guiddef.h"
10 #include "rpc.h"
11 #include "rpcndr.h"
13 typedef void* HMETAFILEPICT;
15 typedef WORD CLIPFORMAT, *LPCLIPFORMAT;
17 /* FIXME: does not belong here */
18 typedef CHAR OLECHAR16;
19 typedef LPSTR LPOLESTR16;
20 typedef LPCSTR LPCOLESTR16;
21 typedef OLECHAR16 *BSTR16;
22 typedef BSTR16 *LPBSTR16;
23 #define OLESTR16(x) x
25 typedef WCHAR OLECHAR;
26 typedef LPWSTR LPOLESTR;
27 typedef LPCWSTR LPCOLESTR;
28 typedef OLECHAR *BSTR;
29 typedef BSTR *LPBSTR;
30 #ifndef __WINE__
31 #define OLESTR(str) WINE_UNICODE_TEXT(str)
32 #endif
34 #ifndef _DWORDLONG_
35 #define _DWORDLONG_
36 typedef __uint64 DWORDLONG, *PDWORDLONG;
37 #endif
39 #ifndef _ULONGLONG_
40 #define _ULONGLONG_
41 typedef __int64 LONGLONG, *PLONGLONG;
42 typedef __uint64 ULONGLONG, *PULONGLONG;
43 #endif
45 typedef enum tagDVASPECT
47 DVASPECT_CONTENT = 1,
48 DVASPECT_THUMBNAIL = 2,
49 DVASPECT_ICON = 4,
50 DVASPECT_DOCPRINT = 8
51 } DVASPECT;
53 typedef enum tagSTGC
55 STGC_DEFAULT = 0,
56 STGC_OVERWRITE = 1,
57 STGC_ONLYIFCURRENT = 2,
58 STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4,
59 STGC_CONSOLIDATE = 8
60 } STGC;
62 typedef enum tagSTGMOVE
64 STGMOVE_MOVE = 0,
65 STGMOVE_COPY = 1,
66 STGMOVE_SHALLOWCOPY = 2
67 } STGMOVE;
70 typedef struct _COAUTHIDENTITY
72 USHORT* User;
73 ULONG UserLength;
74 USHORT* Domain;
75 ULONG DomainLength;
76 USHORT* Password;
77 ULONG PasswordLength;
78 ULONG Flags;
79 } COAUTHIDENTITY;
81 typedef struct _COAUTHINFO
83 DWORD dwAuthnSvc;
84 DWORD dwAuthzSvc;
85 LPWSTR pwszServerPrincName;
86 DWORD dwAuthnLevel;
87 DWORD dwImpersonationLevel;
88 COAUTHIDENTITY* pAuthIdentityData;
89 DWORD dwCapabilities;
90 } COAUTHINFO;
92 typedef struct _COSERVERINFO
94 DWORD dwReserved1;
95 LPWSTR pwszName;
96 COAUTHINFO* pAuthInfo;
97 DWORD dwReserved2;
98 } COSERVERINFO;
100 typedef enum tagCLSCTX
102 CLSCTX_INPROC_SERVER = 0x1,
103 CLSCTX_INPROC_HANDLER = 0x2,
104 CLSCTX_LOCAL_SERVER = 0x4,
105 CLSCTX_INPROC_SERVER16 = 0x8,
106 CLSCTX_REMOTE_SERVER = 0x10,
107 CLSCTX_INPROC_HANDLER16 = 0x20,
108 CLSCTX_INPROC_SERVERX86 = 0x40,
109 CLSCTX_INPROC_HANDLERX86 = 0x80,
110 CLSCTX_ESERVER_HANDLER = 0x100
111 } CLSCTX;
113 #define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)
114 #define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
115 #define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)
117 typedef enum tagMSHLFLAGS
119 MSHLFLAGS_NORMAL = 0,
120 MSHLFLAGS_TABLESTRONG = 1,
121 MSHLFLAGS_TABLEWEAK = 2,
122 MSHLFLAGS_NOPING = 4
123 } MSHLFLAGS;
125 typedef enum tagMSHCTX
127 MSHCTX_LOCAL = 0,
128 MSHCTX_NOSHAREDMEM = 1,
129 MSHCTX_DIFFERENTMACHINE = 2,
130 MSHCTX_INPROC = 3
131 } MSHCTX;
133 typedef unsigned short VARTYPE;
135 typedef ULONG PROPID;
137 #ifndef _tagBLOB_DEFINED
138 #define _tagBLOB_DEFINED
139 #define _BLOB_DEFINED
140 #define _LPBLOB_DEFINED
141 typedef struct tagBLOB
143 ULONG cbSize;
144 BYTE *pBlobData;
145 } BLOB, *LPBLOB;
146 #endif
148 #ifndef _tagCY_DEFINED
149 #define _tagCY_DEFINED
151 typedef union tagCY {
152 struct {
153 #ifdef BIG_ENDIAN
154 LONG Hi;
155 LONG Lo;
156 #else /* defined(BIG_ENDIAN) */
157 ULONG Lo;
158 LONG Hi;
159 #endif /* defined(BIG_ENDIAN) */
160 } DUMMYSTRUCTNAME;
161 LONGLONG int64;
162 } CY;
164 #endif /* _tagCY_DEFINED */
167 * 0 == FALSE and -1 == TRUE
169 #define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)
170 #define VARIANT_FALSE ((VARIANT_BOOL)0x0000)
171 typedef short VARIANT_BOOL,_VARIANT_BOOL;
173 typedef struct tagCLIPDATA
175 ULONG cbSize;
176 long ulClipFmt;
177 BYTE *pClipData;
178 } CLIPDATA;
180 /* Macro to calculate the size of the above pClipData */
181 #define CBPCLIPDATA(clipdata) ( (clipdata).cbSize - sizeof((clipdata).ulClipFmt) )
183 typedef LONG SCODE;
185 #ifndef _FILETIME_
186 #define _FILETIME_
187 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
188 typedef struct
190 DWORD dwLowDateTime;
191 DWORD dwHighDateTime;
192 } FILETIME, *LPFILETIME;
193 #endif /* _FILETIME_ */
195 #ifndef _SECURITY_DEFINED
196 #define _SECURITY_DEFINED
198 typedef struct {
199 BYTE Value[6];
200 } SID_IDENTIFIER_AUTHORITY,*PSID_IDENTIFIER_AUTHORITY;
202 typedef struct _SID {
203 BYTE Revision;
204 BYTE SubAuthorityCount;
205 SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
206 DWORD SubAuthority[1];
207 } SID,*PSID;
210 * ACL
213 typedef struct _ACL {
214 BYTE AclRevision;
215 BYTE Sbz1;
216 WORD AclSize;
217 WORD AceCount;
218 WORD Sbz2;
219 } ACL, *PACL;
221 typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
223 /* The security descriptor structure */
224 typedef struct {
225 BYTE Revision;
226 BYTE Sbz1;
227 SECURITY_DESCRIPTOR_CONTROL Control;
228 PSID Owner;
229 PSID Group;
230 PACL Sacl;
231 PACL Dacl;
232 } SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
234 #endif /* _SECURITY_DEFINED */
236 #ifndef _ROTFLAGS_DEFINED
237 #define _ROTFLAGS_DEFINED
238 #define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1
239 #define ROTFLAGS_ALLOWANYCLIENT 0x2
240 #endif /* !defined(_ROTFLAGS_DEFINED) */
242 #endif /* __WINE_WTYPES_H */