wine/include/rstupd.idl
Alistair Leslie-Hughes ec9311ebd6 include: Add IRowsetUpdate interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-11 21:14:58 +01:00

57 lines
2.3 KiB
Text

/*
* Copyright (C) 2020 Alistair Leslie-Hughes
*
* 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
*/
#if 0
#pragma makedep install
#endif
[
local,
object,
uuid(0c733a6d-2a1c-11ce-ade5-00aa0044773d),
pointer_default(unique)
]
interface IRowsetUpdate : IRowsetChange
{
typedef DWORD DBPENDINGSTATUS;
enum DBPENDINGSTATUSENUM
{
DBPENDINGSTATUS_NEW = 0x01,
DBPENDINGSTATUS_CHANGED = 0x02,
DBPENDINGSTATUS_DELETED = 0x04,
DBPENDINGSTATUS_UNCHANGED = 0x08,
DBPENDINGSTATUS_INVALIDROW = 0x10,
};
HRESULT GetOriginalData([in] HROW row, [in] HACCESSOR accessor, [out] void *data );
HRESULT GetPendingRows([in] HCHAPTER reserved, [in] DBPENDINGSTATUS status, [in, out] DBCOUNTITEM *pending_cnt,
[out, size_is(,*pending_cnt)] HROW **rending_rows,
[out, size_is(,*pending_cnt)] DBPENDINGSTATUS **pending_status);
HRESULT GetRowStatus([in] HCHAPTER reserved, [in] DBCOUNTITEM count, [in, size_is(count)] const HROW rows[],
[out, size_is(count)] DBPENDINGSTATUS status[]);
HRESULT Undo([in] HCHAPTER reserved, [in] DBCOUNTITEM count, [in, size_is(count)] const HROW rows[],
[in, out] DBCOUNTITEM *undone_cnt, [out, size_is(,*undone_cnt)] HROW **undone,
[out, size_is(,*undone_cnt)] DBROWSTATUS ** status);
HRESULT Update([in] HCHAPTER reserved, [in] DBCOUNTITEM count, [in, size_is(count)] const HROW rows[],
[in, out] DBCOUNTITEM *row_cnt, [out, size_is(,*row_cnt)] HROW **hrows,
[out, size_is(,*row_cnt)] DBROWSTATUS **status);
}