ReactOS  0.4.15-dev-2704-gd5265b0
dbs.idl
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Mike McCormack
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 typedef DWORD DBKIND;
20 
21 enum DBKINDENUM {
29 };
30 
31 typedef struct tagDBID {
32  [switch_type(DBKIND), switch_is(eKind)] union
33  {
38  [default]
39  ;
40  } uGuid;
42  [switch_type(DBKIND), switch_is(eKind)] union
43  {
48  [default]
49  ;
50  } uName;
51 } DBID;
52 
53 typedef DWORD DBPROPID;
54 
55 typedef struct tagDBPROPIDSET {
59 } DBPROPIDSET;
60 
62 
67 };
68 
70 
71 typedef struct tagDBPROP {
77 } DBPROP;
78 
79 typedef struct tagDBPROPSET {
83 } DBPROPSET;
84 
86 
87 typedef struct tagDBPROPINFO {
93 } DBPROPINFO;
94 
96 
97 typedef struct tagDBPROPINFOSET {
101 } DBPROPINFOSET;
102 
105 
106 typedef struct tagDBIMPLICITSESSION
107 {
112 
113 typedef WORD DBTYPE;
114 
116 {
132  DBTYPE_I1 = 16,
136  DBTYPE_I8 = 20,
140  DBTYPE_STR = 129,
141  DBTYPE_WSTR = 130,
143  DBTYPE_UDT = 132,
147 
148  DBTYPE_VECTOR = 0x1000,
149  DBTYPE_ARRAY = 0x2000,
150  DBTYPE_BYREF = 0x4000,
152 };
153 
155 {
157 };
158 
160 {
164 };
165 
166 typedef DWORD DBSTATUS;
167 
169 {
184 };
185 
186 cpp_quote("#ifdef DBINITCONSTANTS")
187 cpp_quote("#ifdef __cplusplus")
188 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
191 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
192 cpp_quote("#else")
193 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
194 cpp_quote(" const GUID name DECLSPEC_HIDDEN; \\")
195 cpp_quote(" const GUID name = \\")
196 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
197 cpp_quote("#endif")
198 cpp_quote("#else")
199 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
200 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
201 cpp_quote("#endif")
202 
203 cpp_quote("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
204 cpp_quote("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
205 cpp_quote("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
206 cpp_quote("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
207 
208 typedef struct tagDBCOLUMNACCESS
209 {
210  void *pData;
211  DBID columnid;
212  DBLENGTH cbDataLen;
213  DBSTATUS dwStatus;
214  DBLENGTH cbMaxLen;
215  DB_DWRESERVE dwReserved;
216  DBTYPE wType;
217  BYTE bPrecision;
218  BYTE bScale;
219 } DBCOLUMNACCESS;
220 
221 typedef DWORD DBROWSTATUS;
222 
223 enum DBROWSTATUSENUM
224 {
225  DBROWSTATUS_S_OK = 0,
226  /* FIXME */
227  DBROWSTATUS_E_FAIL = 19,
228 
229 };
230 
231 typedef DWORD DBPART;
232 
233 enum DBPARTENUM
234 {
235  DBPART_INVALID = 0,
236  DBPART_VALUE = 1,
237  DBPART_LENGTH = 2,
238  DBPART_STATUS = 4,
239 };
240 
241 typedef DWORD DBPARAMIO;
242 
243 enum DBPARAMIOENUM
244 {
245  DBPARAMIO_NOTPARAM = 0,
246  DBPARAMIO_INPUT = 1,
247  DBPARAMIO_OUTPUT = 2,
248 };
249 
250 typedef DWORD DBMEMOWNER;
251 
252 enum DBMEMOWNERENUM
253 {
254  DBMEMOWNER_CLIENTOWNED = 0,
255  DBMEMOWNER_PROVIDEROWNED = 1,
256 };
257 
258 typedef struct tagDBOBJECT
259 {
260  DWORD dwFlags;
261  IID iid;
262 } DBOBJECT;
263 
264 typedef struct tagDBBINDEXT
265 {
266  [size_is((ULONG)ulExtension)] BYTE *pExtension;
267  DBCOUNTITEM ulExtension;
268 } DBBINDEXT;
269 
270 typedef struct tagDBBINDING
271 {
272  DBORDINAL iOrdinal;
273  DBBYTEOFFSET obValue;
274  DBBYTEOFFSET obLength;
275  DBBYTEOFFSET obStatus;
276  ITypeInfo *pTypeInfo;
277  DBOBJECT *pObject;
278  DBBINDEXT *pBindExt;
279  DBPART dwPart;
280  DBMEMOWNER dwMemOwner;
281  DBPARAMIO eParamIO;
282  DBLENGTH cbMaxLen;
283  DWORD dwFlags;
284  DBTYPE wType;
285  BYTE bPrecision;
286  BYTE bScale;
287 } DBBINDING;
288 
289 typedef ULONG_PTR HACCESSOR;
290 
291 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
292 
293 typedef ULONG_PTR HROW;
294 
295 cpp_quote("#define DB_NULL_HROW 0x00")
296 
297 typedef ULONG_PTR HWATCHREGION;
298 
299 cpp_quote("#define DBWATCHREGION_NULL NULL")
300 
301 typedef ULONG_PTR HCHAPTER;
302 
303 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
304 
305 typedef struct tagDBPARAMS
306 {
307  void *pData;
308  DB_UPARAMS cParamSets;
309  HACCESSOR hAccessor;
310 } DBPARAMS;
311 
312 typedef DWORD DBASYNCHOP;
313 
314 enum DBASYNCHOPENUM
315 {
316  DBSYNCHOP_OPEN,
317 };
318 
319 typedef DWORD DBASYNCHPHASE;
320 
321 enum DBASYNCHPHASEENUM
322 {
323  DBASYNCHPHASE_INITIALIZATION,
324  DBASYNCHPHASE_POPULATION,
325  DBASYNCHPHASE_COMPLETE,
326  DBASYNCHPHASE_CANCELED,
327 };
328 
329 typedef struct tagRMTPACK
330 {
331  ISequentialStream *pISeqStream;
332  ULONG cbData;
333  ULONG cBSTR;
334  [size_is(cBSTR)] BSTR *rgBSTR;
335  ULONG cVARIANT;
336  [size_is(cVARIANT)] VARIANT *rgVARIANT;
337  ULONG cIDISPATCH;
338  [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
339  ULONG cIUNKNOWN;
340  [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
341  ULONG cPROPVARIANT;
342  [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
343  ULONG cArray;
344  [size_is(cArray)] VARIANT *rgArray;
345 } RMTPACK;
DBPROPSTATUS dwStatus
Definition: dbs.idl:74
GUID guidPropertySet
Definition: dbs.idl:100
struct tagDBIMPLICITSESSION DBIMPLICITSESSION
struct tagDBPROPINFOSET DBPROPINFOSET
DBKINDENUM
Definition: dbs.idl:21
DWORD DBPROPOPTIONS
Definition: dbs.idl:61
DBPROPOPTIONENUM
Definition: dbs.idl:63
DBPROPFLAGS dwFlags
Definition: dbs.idl:90
static LPOLESTR
Definition: stg_prop.c:27
DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) EXTERN_C const GUID name DECLSPEC_HIDDEN
Definition: dbs.idl:188
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
struct tagDBPROP DBPROP
DWORD DBBINDURLSTATUS
Definition: dbs.idl:104
ULONG cPropertyIDs
Definition: dbs.idl:57
VARTYPE vtType
Definition: dbs.idl:91
ULONG cPropertyInfos
Definition: dbs.idl:99
static CRYPT_DATA_BLOB b1[]
Definition: msg.c:573
DBTYPEENUM
Definition: dbs.idl:115
DBPROPINFO * PDBPROPINFO
Definition: dbs.idl:95
DBPROPID * rgPropertyIDs
Definition: dbs.idl:56
GUID guidPropertySet
Definition: dbs.idl:58
struct tagDBPROPIDSET DBPROPIDSET
IUnknown * pSession
Definition: dbs.idl:110
DWORD DBKIND
Definition: dbs.idl:19
DBKIND eKind
Definition: dbs.idl:41
GUID guidPropertySet
Definition: dbs.idl:82
DWORD DBPROPSTATUS
Definition: dbs.idl:69
r l[0]
Definition: byte_order.h:167
union tagDBID::@2793 uName
DWORD DBPROPFLAGS
Definition: dbs.idl:85
LPOLESTR pwszDescription
Definition: dbs.idl:88
const GUID DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) EXTERN_C const GUID name DECLSPEC_HIDDEN DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d)
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
DBSTATUSENUM
Definition: dbs.idl:168
DWORD DBBINDURLFLAG
Definition: dbs.idl:103
struct tagDBPROPINFO DBPROPINFO
VARIANT vValue
Definition: dbs.idl:76
PDBPROPINFO rgPropertyInfos
Definition: dbs.idl:98
DBID colid
Definition: dbs.idl:75
DBTYPEENUM20
Definition: dbs.idl:159
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint GLdouble GLdouble w2
Definition: glext.h:8308
DBPROPID dwPropertyID
Definition: dbs.idl:72
ULONG ulPropid
Definition: dbs.idl:47
WORD DBTYPE
Definition: dbs.idl:113
IUnknown * pUnkOuter
Definition: dbs.idl:108
static CRYPT_DATA_BLOB b3[]
Definition: msg.c:592
DBPROPID dwPropertyID
Definition: dbs.idl:89
unsigned short VARTYPE
Definition: compat.h:2113
DWORD DBSTATUS
Definition: dbs.idl:166
DBPROP * rgProperties
Definition: dbs.idl:80
#define NULL
Definition: types.h:112
Definition: name.c:38
GUID guid
Definition: dbs.idl:35
VARIANT vValues
Definition: dbs.idl:92
struct tagDBID DBID
unsigned int ULONG
Definition: retypes.h:1
#define const
Definition: zconf.h:230
LPOLESTR pwszName
Definition: dbs.idl:45
ULONG cProperties
Definition: dbs.idl:81
static CRYPT_DATA_BLOB b2[]
Definition: msg.c:582
DBTYPEENUM15
Definition: dbs.idl:154
static CRYPT_DATA_BLOB b4
Definition: msg.c:2284
struct tagDBPROPSET DBPROPSET
union tagDBID::@2792 uGuid
#define EXTERN_C
Definition: basetyps.h:12
Definition: dbs.idl:31
DWORD DBPROPID
Definition: dbs.idl:53
GUID * pguid
Definition: dbs.idl:37
DBPROPOPTIONS dwOptions
Definition: dbs.idl:73
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint GLdouble w1
Definition: glext.h:8308