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(0c733a63-2a1c-11ce-ade5-00aa0044773d),
|
---|
31 | pointer_default(unique)
|
---|
32 | ]
|
---|
33 | interface ICommand : IUnknown
|
---|
34 | {
|
---|
35 | [local]
|
---|
36 | HRESULT Cancel();
|
---|
37 |
|
---|
38 | [call_as(Cancel)]
|
---|
39 | HRESULT RemoteCancel([out] IErrorInfo **ppErrorInfoRem);
|
---|
40 |
|
---|
41 | [local]
|
---|
42 | HRESULT Execute([in, annotation("__in_opt")] IUnknown *pUnkOuter,
|
---|
43 | [in] REFIID riid,
|
---|
44 | [in, out, annotation("__inout_opt")] DBPARAMS *pParams,
|
---|
45 | [out, annotation("__out_opt")] DBROWCOUNT *pcRowsAffected,
|
---|
46 | [out, iid_is(riid), annotation("__deref_opt_out")] IUnknown **ppRowset);
|
---|
47 |
|
---|
48 | [call_as(Execute)]
|
---|
49 | HRESULT RemoteExecute([in] IUnknown *pUnkOuter,
|
---|
50 | [in] REFIID riid,
|
---|
51 | [in] HACCESSOR hAccessor,
|
---|
52 | [in] DB_UPARAMS cParamSets,
|
---|
53 | [in, unique] GUID *pGuid,
|
---|
54 | [in] ULONG ulGuidOffset,
|
---|
55 | [in, unique] RMTPACK *pInputParams,
|
---|
56 | [in, out, unique] RMTPACK *pOutputParams,
|
---|
57 | [in] DBCOUNTITEM cBindings,
|
---|
58 | [in, unique, size_is((ULONG)cBindings)] DBBINDING *rgBindings,
|
---|
59 | [in, out, unique, size_is((ULONG)cBindings)] DBSTATUS *rgStatus,
|
---|
60 | [in, out, unique] DBROWCOUNT *pcRowsAffected,
|
---|
61 | [in, out, unique, iid_is(riid)] IUnknown **ppRowset);
|
---|
62 |
|
---|
63 | [local]
|
---|
64 | HRESULT GetDBSession([in] REFIID riid,
|
---|
65 | [out, iid_is(riid), annotation("__deref_out_opt")] IUnknown **ppSession);
|
---|
66 |
|
---|
67 | [call_as(GetDBSession)]
|
---|
68 | HRESULT RemoteGetDBSession([in] REFIID riid,
|
---|
69 | [out, iid_is(riid)] IUnknown **ppSession,
|
---|
70 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
71 | };
|
---|