2 * Implementation of the Microsoft Installer (msi.dll)
4 * Copyright 2006 Mike McCormack
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
26 #include "wine/debug.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(msidb);
37 typedef struct tagMSIALTERVIEW
43 static UINT ALTER_fetch_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT *val )
45 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
47 TRACE("%p %d %d %p\n", av, row, col, val );
49 return ERROR_FUNCTION_FAILED;
52 static UINT ALTER_fetch_stream( struct tagMSIVIEW *view, UINT row, UINT col, IStream **stm)
54 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
56 TRACE("%p %d %d %p\n", av, row, col, stm );
58 return ERROR_FUNCTION_FAILED;
61 static UINT ALTER_set_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT val )
63 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
65 TRACE("%p %d %d %04x\n", av, row, col, val );
67 return ERROR_FUNCTION_FAILED;
70 static UINT ALTER_insert_row( struct tagMSIVIEW *view, MSIRECORD *record )
72 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
74 TRACE("%p %p\n", av, record );
76 return ERROR_FUNCTION_FAILED;
79 static UINT ALTER_execute( struct tagMSIVIEW *view, MSIRECORD *record )
81 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
83 FIXME("%p %p\n", av, record);
88 static UINT ALTER_close( struct tagMSIVIEW *view )
90 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
97 static UINT ALTER_get_dimensions( struct tagMSIVIEW *view, UINT *rows, UINT *cols )
99 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
101 TRACE("%p %p %p\n", av, rows, cols );
103 return ERROR_FUNCTION_FAILED;
106 static UINT ALTER_get_column_info( struct tagMSIVIEW *view,
107 UINT n, LPWSTR *name, UINT *type )
109 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
111 TRACE("%p %d %p %p\n", av, n, name, type );
113 return ERROR_FUNCTION_FAILED;
116 static UINT ALTER_modify( struct tagMSIVIEW *view, MSIMODIFY eModifyMode,
119 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
121 TRACE("%p %d %p\n", av, eModifyMode, rec );
123 return ERROR_FUNCTION_FAILED;
126 static UINT ALTER_delete( struct tagMSIVIEW *view )
128 MSIALTERVIEW *av = (MSIALTERVIEW*)view;
133 return ERROR_SUCCESS;
136 static UINT ALTER_find_matching_rows( struct tagMSIVIEW *view, UINT col,
137 UINT val, UINT *row, MSIITERHANDLE *handle )
139 TRACE("%p, %d, %u, %p\n", view, col, val, *handle);
141 return ERROR_FUNCTION_FAILED;
145 static const MSIVIEWOPS alter_ops =
153 ALTER_get_dimensions,
154 ALTER_get_column_info,
157 ALTER_find_matching_rows
160 UINT ALTER_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR name, int hold )
162 MSIALTERVIEW *av = NULL;
166 av = msi_alloc_zero( sizeof *av );
168 return ERROR_FUNCTION_FAILED;
170 /* fill the structure */
171 av->view.ops = &alter_ops;
176 return ERROR_SUCCESS;