148 lines
4.0 KiB
Plaintext
148 lines
4.0 KiB
Plaintext
/*
|
|
* Wine row server interface.
|
|
*
|
|
* Copyright (C) 2010 Huw Davies
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
import "oledb.idl";
|
|
|
|
[
|
|
object,
|
|
uuid(38248178-cf6d-11de-abe5-000c2916d865),
|
|
pointer_default(unique)
|
|
]
|
|
interface IWineRowServer : IUnknown
|
|
{
|
|
[local] HRESULT SetInnerUnk([in] IUnknown *unknown);
|
|
|
|
[local] HRESULT GetMarshal([out] IMarshal **marshal);
|
|
|
|
|
|
/* IRow */
|
|
|
|
typedef struct
|
|
{
|
|
DBID columnid;
|
|
DBLENGTH max_len;
|
|
DBTYPE type;
|
|
BYTE precision;
|
|
BYTE scale;
|
|
} wine_getcolumns_in;
|
|
|
|
typedef struct
|
|
{
|
|
VARIANT v;
|
|
DBLENGTH data_len;
|
|
DBSTATUS status;
|
|
} wine_getcolumns_out;
|
|
|
|
HRESULT GetColumns([in] DBORDINAL num_cols,
|
|
[in, size_is(num_cols)] wine_getcolumns_in *in_data,
|
|
[out, size_is(num_cols)] wine_getcolumns_out *out_cols);
|
|
|
|
HRESULT GetSourceRowset([in] REFIID riid,
|
|
[out, iid_is(riid)] IUnknown **ppRowset,
|
|
[out] HROW *phRow);
|
|
|
|
HRESULT Open([in, unique] IUnknown *pUnkOuter,
|
|
[in] DBID *pColumnID,
|
|
[in] REFGUID rguidColumnType,
|
|
[in] DWORD dwBindFlags,
|
|
[in] REFIID riid,
|
|
[out, iid_is(riid)] IUnknown **ppUnk);
|
|
|
|
/* IRowChange */
|
|
typedef struct
|
|
{
|
|
VARIANT v;
|
|
DBID columnid;
|
|
DBLENGTH data_len;
|
|
DBSTATUS status;
|
|
DBLENGTH max_len;
|
|
DBTYPE type;
|
|
BYTE precision;
|
|
BYTE scale;
|
|
} wine_setcolumns_in;
|
|
|
|
HRESULT SetColumns([in] DBORDINAL num_cols,
|
|
[in, size_is(num_cols)] wine_setcolumns_in *in_data,
|
|
[out, size_is(num_cols)] DBSTATUS *status);
|
|
|
|
/* IRowset */
|
|
HRESULT AddRefRows([in] DBCOUNTITEM cRows,
|
|
[in, size_is(cRows)] const HROW rghRows[],
|
|
[out, size_is(cRows)] DBREFCOUNT rgRefCounts[],
|
|
[out, size_is(cRows)] DBROWSTATUS rgRowStatus[]);
|
|
|
|
HRESULT GetData([in] HROW hRow,
|
|
[in] HACCESSOR hAccessor,
|
|
[in, out, size_is(size)] BYTE *pData,
|
|
[in] DWORD size);
|
|
|
|
HRESULT GetNextRows([in] HCHAPTER hReserved,
|
|
[in] DBROWOFFSET lRowsOffset,
|
|
[in] DBROWCOUNT cRows,
|
|
[out] DBCOUNTITEM *pcRowObtained,
|
|
[out, size_is(,cRows)] HROW **prghRows);
|
|
|
|
HRESULT ReleaseRows([in] DBCOUNTITEM cRows,
|
|
[in, size_is(cRows)] const HROW rghRows[],
|
|
[in, size_is(cRows)] DBROWOPTIONS rgRowOptions[],
|
|
[out, size_is(cRows)] DBREFCOUNT rgRefCounts[],
|
|
[out, size_is(cRows)] DBROWSTATUS rgRowStatus[]);
|
|
|
|
HRESULT RestartPosition([in] HCHAPTER hReserved);
|
|
|
|
}
|
|
|
|
[
|
|
uuid(38248178-cf6d-11de-abe5-000c2916d865)
|
|
]
|
|
coclass wine_row_server
|
|
{
|
|
|
|
}
|
|
|
|
[
|
|
uuid(38248179-cf6d-11de-abe5-000c2916d865)
|
|
]
|
|
coclass wine_row_proxy
|
|
{
|
|
|
|
}
|
|
|
|
[
|
|
uuid(3824817a-cf6d-11de-abe5-000c2916d865)
|
|
]
|
|
coclass wine_rowset_server
|
|
{
|
|
|
|
}
|
|
|
|
[
|
|
uuid(3824817b-cf6d-11de-abe5-000c2916d865)
|
|
]
|
|
coclass wine_rowset_proxy
|
|
{
|
|
|
|
}
|
|
|
|
cpp_quote("extern HRESULT create_row_server( IUnknown*, LPVOID* );")
|
|
cpp_quote("extern HRESULT create_row_marshal( IUnknown*, LPVOID* );")
|
|
cpp_quote("extern HRESULT create_rowset_server( IUnknown*, LPVOID* );")
|
|
cpp_quote("extern HRESULT create_rowset_marshal( IUnknown*, LPVOID* );")
|