1 | /*
|
---|
2 | * Copyright (C) 2009 Huw Davies
|
---|
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 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | [
|
---|
29 | object,
|
---|
30 | uuid(0c733a7a-2a1c-11ce-ade5-00aa0044773d),
|
---|
31 | pointer_default(unique)
|
---|
32 | ]
|
---|
33 | interface IDBDataSourceAdmin : IUnknown
|
---|
34 | {
|
---|
35 | [local]
|
---|
36 | HRESULT CreateDataSource([in] ULONG cPropertySets,
|
---|
37 | [in, out, size_is(cPropertySets)] DBPROPSET rgPropertySets[],
|
---|
38 | [in] IUnknown *pUnkOuter,
|
---|
39 | [in] REFIID riid,
|
---|
40 | [out, iid_is(riid)] IUnknown **ppDBSession);
|
---|
41 |
|
---|
42 | [call_as(CreateDataSource)]
|
---|
43 | HRESULT RemoteCreateDataSource([in] ULONG cPropertySets,
|
---|
44 | [in, unique, size_is(cPropertySets)] DBPROPSET *rgPropertySets,
|
---|
45 | [in] IUnknown *pUnkOuter,
|
---|
46 | [in] REFIID riid,
|
---|
47 | [in, out, unique, iid_is(riid)] IUnknown **ppDBSession,
|
---|
48 | [in] ULONG cTotalProps,
|
---|
49 | [out, size_is(cTotalProps)] DBPROPSTATUS *rgPropStatus,
|
---|
50 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
51 |
|
---|
52 | [local]
|
---|
53 | HRESULT DestroyDataSource();
|
---|
54 |
|
---|
55 | [call_as(DestroyDataSource)]
|
---|
56 | HRESULT RemoteDestroyDataSource([out] IErrorInfo **ppErrorInfoRem);
|
---|
57 |
|
---|
58 | [local]
|
---|
59 | HRESULT GetCreationProperties([in] ULONG cPropertyIDSets,
|
---|
60 | [in, size_is(cPropertyIDSets)] const DBPROPIDSET rgPropertyIDSets[],
|
---|
61 | [in, out] ULONG *pcPropertyInfoSets,
|
---|
62 | [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET **prgPropertyInfoSets,
|
---|
63 | [out, annotation("__deref_out_z_opt")] OLECHAR **ppDescBuffer);
|
---|
64 |
|
---|
65 | [call_as(GetCreationProperties)]
|
---|
66 | HRESULT RemoteGetCreationProperties([in] ULONG cPropertyIDSets,
|
---|
67 | [in, unique, size_is(cPropertyIDSets)] const DBPROPIDSET *rgPropertyIDSets,
|
---|
68 | [in, out] ULONG *pcPropertyInfoSets,
|
---|
69 | [out, size_is(,*pcPropertyInfoSets)] DBPROPINFOSET **prgPropertyInfoSets,
|
---|
70 | [in, out] DBCOUNTITEM *pcOffsets,
|
---|
71 | [out, size_is(,(ULONG)*pcOffsets)] DBBYTEOFFSET **prgDescOffsets,
|
---|
72 | [in, out] ULONG *pcbDescBuffer,
|
---|
73 | [in, out, unique, size_is(,*pcbDescBuffer)] OLECHAR **ppDescBuffer,
|
---|
74 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
75 |
|
---|
76 | [local]
|
---|
77 | HRESULT ModifyDataSource([in] ULONG cPropertySets,
|
---|
78 | [in, size_is(cPropertySets)] DBPROPSET rgPropertySets[]);
|
---|
79 |
|
---|
80 | [call_as(ModifyDataSource)]
|
---|
81 | HRESULT RemoteModifyDataSource([in] ULONG cPropertySets,
|
---|
82 | [in, size_is(cPropertySets)] DBPROPSET *rgPropertySets,
|
---|
83 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
84 | }
|
---|