1 | /*
|
---|
2 | * Copyright (C) 2013 Nikolay Sivov
|
---|
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(0c733a94-2a1c-11ce-ade5-00aa0044773d),
|
---|
31 | pointer_default(unique)
|
---|
32 | ]
|
---|
33 | interface IRowPosition : IUnknown
|
---|
34 | {
|
---|
35 | typedef DWORD DBPOSITIONFLAGS;
|
---|
36 |
|
---|
37 | enum DBPOSITIONFLAGSENUM {
|
---|
38 | DBPOSITION_OK,
|
---|
39 | DBPOSITION_NOROW,
|
---|
40 | DBPOSITION_BOF,
|
---|
41 | DBPOSITION_EOF
|
---|
42 | };
|
---|
43 |
|
---|
44 | [local]
|
---|
45 | HRESULT ClearRowPosition();
|
---|
46 |
|
---|
47 | [call_as(ClearRowPosition)]
|
---|
48 | HRESULT RemoteClearRowPosition([out] IErrorInfo **errorinfo);
|
---|
49 |
|
---|
50 | [local]
|
---|
51 | HRESULT GetRowPosition([out] HCHAPTER *chapter,
|
---|
52 | [out] HROW *row,
|
---|
53 | [out] DBPOSITIONFLAGS *position_flags);
|
---|
54 |
|
---|
55 | [call_as(GetRowPosition)]
|
---|
56 | HRESULT RemoteGetRowPosition([out] HCHAPTER *chapter,
|
---|
57 | [out] HROW *row,
|
---|
58 | [out] DBPOSITIONFLAGS *position_flags,
|
---|
59 | [out] IErrorInfo **errorinfo);
|
---|
60 | [local]
|
---|
61 | HRESULT GetRowset([in] REFIID riid,
|
---|
62 | [out, iid_is(riid)] IUnknown **rowset);
|
---|
63 |
|
---|
64 | [call_as(GetRowset)]
|
---|
65 | HRESULT RemoteGetRowset([in] REFIID riid,
|
---|
66 | [out, iid_is(riid)] IUnknown **rowset,
|
---|
67 | [out] IErrorInfo **errorinfo);
|
---|
68 |
|
---|
69 | [local]
|
---|
70 | HRESULT Initialize([in] IUnknown *rowset);
|
---|
71 |
|
---|
72 | [call_as(Initialize)]
|
---|
73 | HRESULT RemoteInitialize([in] IUnknown *rowset,
|
---|
74 | [out] IErrorInfo **errorinfo);
|
---|
75 |
|
---|
76 | [local]
|
---|
77 | HRESULT SetRowPosition([in] HCHAPTER chapter,
|
---|
78 | [in] HROW row,
|
---|
79 | [in] DBPOSITIONFLAGS flags);
|
---|
80 |
|
---|
81 | [call_as(SetRowPosition)]
|
---|
82 | HRESULT RemoteSetRowPosition([in] HCHAPTER chapter,
|
---|
83 | [in] HROW row,
|
---|
84 | [in] DBPOSITIONFLAGS flags,
|
---|
85 | [out] IErrorInfo **errorinfo);
|
---|
86 | }
|
---|