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(0c733a8c-2a1c-11ce-ade5-00aa0044773d),
|
---|
31 | pointer_default(unique)
|
---|
32 | ]
|
---|
33 | interface IAccessor : IUnknown
|
---|
34 | {
|
---|
35 |
|
---|
36 | typedef DWORD DBACCESSORFLAGS;
|
---|
37 |
|
---|
38 | typedef DWORD DBBINDSTATUS;
|
---|
39 |
|
---|
40 | [local]
|
---|
41 | HRESULT AddRefAccessor([in] HACCESSOR hAccessor,
|
---|
42 | [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount);
|
---|
43 |
|
---|
44 | [call_as(AddRefAccessor)]
|
---|
45 | HRESULT RemoteAddRefAccessor([in] HACCESSOR hAccessor,
|
---|
46 | [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount,
|
---|
47 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
48 |
|
---|
49 | [local]
|
---|
50 | HRESULT CreateAccessor([in] DBACCESSORFLAGS dwAccessorFlags,
|
---|
51 | [in] DBCOUNTITEM cBindings,
|
---|
52 | [in, size_is(cBindings), annotation("__in_ecount(cBindings)")] const DBBINDING rgBindings[],
|
---|
53 | [in] DBLENGTH cbRowSize,
|
---|
54 | [out, annotation("__out")] HACCESSOR *phAccessor,
|
---|
55 | [out, size_is(cBindings), annotation("__out_ecount_opt(cBindings)")] DBBINDSTATUS rgStatus[]);
|
---|
56 |
|
---|
57 | [call_as(CreateAccessor)]
|
---|
58 | HRESULT RemoteCreateAccessor([in] DBACCESSORFLAGS dwAccessorFlags,
|
---|
59 | [in] DBCOUNTITEM cBindings,
|
---|
60 | [in, unique, size_is((ULONG)cBindings)] DBBINDING *rgBindings,
|
---|
61 | [in] DBLENGTH cbRowSize,
|
---|
62 | [out] HACCESSOR *phAccessor,
|
---|
63 | [in, out, unique, size_is((ULONG)cBindings)] DBBINDSTATUS *rgStatus,
|
---|
64 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
65 |
|
---|
66 | [local]
|
---|
67 | HRESULT GetBindings([in] HACCESSOR hAccessor,
|
---|
68 | [out, annotation("__out")] DBACCESSORFLAGS *pdwAccessorFlags,
|
---|
69 | [in, out, annotation("__out_opt")] DBCOUNTITEM *pcBindings,
|
---|
70 | [out, size_is(,*pcBindings), annotation("__deref_out_ecount_opt(*pcBindings)")] DBBINDING **prgBindings);
|
---|
71 |
|
---|
72 | [call_as(GetBindings)]
|
---|
73 | HRESULT RemoteGetBindings([in] HACCESSOR hAccessor,
|
---|
74 | [out] DBACCESSORFLAGS *pdwAccessorFlags,
|
---|
75 | [in, out] DBCOUNTITEM *pcBindings,
|
---|
76 | [out, size_is(,(ULONG)*pcBindings)] DBBINDING **prgBindings,
|
---|
77 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
78 |
|
---|
79 | [local]
|
---|
80 | HRESULT ReleaseAccessor([in] HACCESSOR hAccessor,
|
---|
81 | [in, out, unique, annotation("__out_opt")] DBREFCOUNT *pcRefCount);
|
---|
82 |
|
---|
83 | [call_as(ReleaseAccessor)]
|
---|
84 | HRESULT RemoteReleaseAccessor([in] HACCESSOR hAccessor,
|
---|
85 | [in, out, unique] DBREFCOUNT *pcRefCount,
|
---|
86 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
87 |
|
---|
88 | };
|
---|