2 * Copyright (C) 2020 Alistair Leslie-Hughes
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.
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.
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
20 #pragma makedep install
25 uuid(0c733a64
-2a1c
-11ce
-ade5
-00aa0044773d
),
26 pointer_default(unique)
28 interface ICommandWithParameters
: IUnknown
31 typedef struct tagDBPARAMBINDINFO
33 LPOLESTR pwszDataSourceType
;
42 HRESULT GetParameterInfo
([in, out] DB_UPARAMS
*uparams
, [out, size_is(,*uparams
)] DBPARAMINFO
**info
, [out] OLECHAR
**buffer
);
44 [call_as
(GetParameterInfo
)]
45 HRESULT RemoteGetParameterInfo
([in, out] DB_UPARAMS
*uparams
, [out, size_is(,(ULONG
)*uparams
)] DBPARAMINFO
**param_info
,
46 [out, size_is(,(ULONG
)*uparams
)] DBBYTEOFFSET
**offsets
, [in, out] DBLENGTH
*buff_len
,
47 [in, out, unique, size_is(,(ULONG
)*buff_len
)] OLECHAR
**buffer
, [out] IErrorInfo
**error
);
50 HRESULT MapParameterNames
([in] DB_UPARAMS uparams
, [in, size_is((ULONG
)uparams
)] LPCWSTR names
[],
51 [out, size_is((ULONG
)uparams
)] DB_LPARAMS ordinals
[]);
53 [call_as
(MapParameterNames
)]
54 HRESULT RemoteMapParameterNames
([in] DB_UPARAMS uparams
, [in, size_is((ULONG
)uparams
)] LPCOLESTR
*names
,
55 [out, size_is((ULONG
)uparams
)] DB_LPARAMS
*ordinals
, [out] IErrorInfo
**error
);
58 HRESULT SetParameterInfo
([in] DB_UPARAMS uparams
, [in, unique, size_is((ULONG
)uparams
)] const DB_UPARAMS ordinals
[],
59 [in, unique, size_is((ULONG
)uparams
)] const DBPARAMBINDINFO bindinfo
[]);
61 [call_as
(SetParameterInfo
)]
62 HRESULT RemoteSetParameterInfo
([in] DB_UPARAMS uparams
, [in, unique, size_is((ULONG
)uparams
)] const DB_UPARAMS
*ordinals
,
63 [in, unique, size_is((ULONG
)uparams
)] const DBPARAMBINDINFO
*bindinfo
, [out] IErrorInfo
**error
);