ReactOS  0.4.15-dev-4914-g2220e56
msiquery.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002,2003 Mike McCormack
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 #ifndef __WINE_MSIQUERY_H
20 #define __WINE_MSIQUERY_H
21 
22 #include <msi.h>
23 
24 typedef enum tagMSICONDITION
25 {
30 } MSICONDITION;
31 
32 #define MSI_NULL_INTEGER 0x80000000
33 
34 typedef enum tagMSICOLINFO
35 {
38 } MSICOLINFO;
39 
40 typedef enum tagMSICOSTTREE
41 {
46 } MSICOSTTREE;
47 
48 typedef enum tagMSIMODIFY
49 {
63 } MSIMODIFY;
64 
65 #ifndef WINE_NO_UNICODE_MACROS
66 #define MSIDBOPEN_READONLY (LPCTSTR)0
67 #define MSIDBOPEN_TRANSACT (LPCTSTR)1
68 #define MSIDBOPEN_DIRECT (LPCTSTR)2
69 #define MSIDBOPEN_CREATE (LPCTSTR)3
70 #define MSIDBOPEN_CREATEDIRECT (LPCTSTR)4
71 #else
72 #define MSIDBOPEN_READONLY (LPCWSTR)0
73 #define MSIDBOPEN_TRANSACT (LPCWSTR)1
74 #define MSIDBOPEN_DIRECT (LPCWSTR)2
75 #define MSIDBOPEN_CREATE (LPCWSTR)3
76 #define MSIDBOPEN_CREATEDIRECT (LPCWSTR)4
77 #endif
78 
79 #define MSIDBOPEN_PATCHFILE 32 / sizeof(*MSIDBOPEN_READONLY)
80 
81 typedef enum tagMSIRUNMODE
82 {
102 } MSIRUNMODE;
103 
104 typedef enum tagMSIDBERROR
105 {
139 } MSIDBERROR;
140 
141 typedef enum tagMSIDBSTATE
142 {
146 } MSIDBSTATE;
147 
149 {
158 
160 {
174 
175 #ifdef __cplusplus
176 extern "C" {
177 #endif
178 
179 /* view manipulation */
185 #define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
188 #define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
189 
191 
192 /* record manipulation */
198 #define MsiRecordSetString WINELIB_NAME_AW(MsiRecordSetString)
201 #define MsiRecordGetString WINELIB_NAME_AW(MsiRecordGetString)
208 #define MsiFormatRecord WINELIB_NAME_AW(MsiFormatRecord)
211 #define MsiRecordSetStream WINELIB_NAME_AW(MsiRecordSetStream)
213 
216 #define MsiDatabaseGetPrimaryKeys WINELIB_NAME_AW(MsiDatabaseGetPrimaryKeys)
217 
218 /* installing */
221 #define MsiDoAction WINELIB_NAME_AW(MsiDoAction)
222 
223 /* database transforms */
226 #define MsiDatabaseApplyTransform WINELIB_NAME_AW(MsiDatabaseApplyTransform)
229 #define MsiDatabaseGenerateTransform WINELIB_NAME_AW(MsiDatabaseGenerateTransform)
230 
232 
233 /* install state */
236 #define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
239 #define MsiGetFeatureValidStates WINELIB_NAME_AW(MsiGetFeatureValidStates)
242 #define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
245 #define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
246 
249 #define MsiEvaluateCondition WINELIB_NAME_AW(MsiEvaluateCondition)
250 
251 /* property functions */
254 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
255 
258 #define MsiSetProperty WINELIB_NAME_AW(MsiSetProperty)
259 
262 #define MsiGetTargetPath WINELIB_NAME_AW(MsiGetTargetPath)
263 
266 #define MsiSetTargetPath WINELIB_NAME_AW(MsiSetTargetPath)
267 
270 #define MsiGetSourcePath WINELIB_NAME_AW(MsiGetSourcePath)
271 
273 
276 
279 #define MsiSetFeatureAttributes WINELIB_NAME_AW(MsiSetFeatureAttributes)
280 
283 #define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
284 
287 #define MsiPreviewDialog WINELIB_NAME_AW(MsiPreviewDialog)
288 
291 #define MsiPreviewBillboard WINELIB_NAME_AW(MsiPreviewBillboard)
292 
295 #define MsiCreateTransformSummaryInfo WINELIB_NAME_AW(MsiCreateTransformSummaryInfo)
296 
299 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
300 
303 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
304 
307 #define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
308 
311 #define MsiDatabaseExport WINELIB_NAME_AW(MsiDatabaseExport)
312 
315 #define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
316 
319 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
320 
323 #define MsiDatabaseIsTablePersistent WINELIB_NAME_AW(MsiDatabaseIsTablePersistent)
324 
327 #define MsiSequence WINELIB_NAME_AW(MsiSequence)
328 
331 
335 
337 
340 #define MsiGetFeatureCost WINELIB_NAME_AW(MsiGetFeatureCost)
341 
343 
345 
347 
348 #ifdef __cplusplus
349 }
350 #endif
351 
352 #endif /* __WINE_MSIQUERY_H */
UINT WINAPI MsiRecordSetStringW(MSIHANDLE, UINT, LPCWSTR)
enum tagMSITRANSFORM_ERROR MSITRANSFORM_ERROR
LANGID WINAPI MsiGetLanguage(MSIHANDLE)
Definition: install.c:1541
UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE, MSICOLINFO, MSIHANDLE *)
Definition: msiquery.c:642
int WINAPI MsiRecordGetInteger(MSIHANDLE, UINT)
Definition: record.c:237
int INSTALLMESSAGE
Definition: winemsi.idl:28
MSIHANDLE WINAPI MsiGetLastErrorRecord(void)
Definition: msiquery.c:872
UINT WINAPI MsiDatabaseCommit(MSIHANDLE)
Definition: msiquery.c:963
enum tagMSICOSTTREE MSICOSTTREE
UINT WINAPI MsiGetTargetPathW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
UINT WINAPI MsiFormatRecordA(MSIHANDLE, MSIHANDLE, LPSTR, LPDWORD)
BOOL WINAPI MsiRecordIsNull(MSIHANDLE, UINT)
Definition: record.c:333
UINT WINAPI MsiPreviewBillboardA(MSIHANDLE, LPCSTR, LPCSTR)
UINT WINAPI MsiDatabaseImportW(MSIHANDLE, LPCWSTR, LPCWSTR)
UINT WINAPI MsiRecordReadStream(MSIHANDLE, UINT, char *, LPDWORD)
UINT WINAPI MsiRecordGetStringA(MSIHANDLE, UINT, LPSTR, LPDWORD)
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
UINT WINAPI MsiSetPropertyW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: package.c:2093
UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE, UINT, PUINT, LPINT, FILETIME *, LPWSTR, LPDWORD)
tagMSITRANSFORM_ERROR
Definition: msiquery.h:148
tagMSICOSTTREE
Definition: msiquery.h:40
UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE, LPCWSTR, MSIHANDLE *)
Definition: msiquery.c:236
MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(MSIHANDLE, LPCSTR)
MSICONDITION WINAPI MsiEvaluateConditionW(MSIHANDLE, LPCWSTR)
UINT WINAPI MsiGetComponentStateA(MSIHANDLE, LPCSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1396
tagMSICONDITION
Definition: msiquery.h:24
tagMSIRUNMODE
Definition: msiquery.h:81
tagMSIDBERROR
Definition: msiquery.h:104
int MSICONDITION
Definition: winemsi.idl:29
UINT WINAPI MsiRecordSetStreamW(MSIHANDLE, UINT, LPCWSTR)
UINT WINAPI MsiSetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE)
Definition: install.c:817
UINT WINAPI MsiViewClose(MSIHANDLE)
Definition: msiquery.c:469
UINT WINAPI MsiDatabaseApplyTransformW(MSIHANDLE, LPCWSTR, int)
UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME *, LPCSTR)
WORD LANGID
Definition: typedefs.h:81
MSIDBSTATE WINAPI MsiGetDatabaseState(MSIHANDLE)
Definition: database.c:1897
MSIDBERROR WINAPI MsiViewGetErrorA(MSIHANDLE, LPSTR, LPDWORD)
UINT WINAPI MsiSetTargetPathW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: install.c:600
UINT WINAPI MsiRecordDataSize(MSIHANDLE, UINT)
Definition: record.c:532
char * LPSTR
Definition: xmlstorage.h:182
UINT WINAPI MsiPreviewBillboardW(MSIHANDLE, LPCWSTR, LPCWSTR)
UINT WINAPI MsiGetFeatureCostA(MSIHANDLE, LPCSTR, MSICOSTTREE, INSTALLSTATE, LPINT)
Definition: install.c:1128
enum tagMSICONDITION MSICONDITION
UINT WINAPI MsiCreateTransformSummaryInfoA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int)
UINT WINAPI MsiRecordGetFieldCount(MSIHANDLE)
Definition: record.c:113
UINT WINAPI MsiViewFetch(MSIHANDLE, MSIHANDLE *)
Definition: msiquery.c:404
UINT WINAPI MsiDatabaseGenerateTransformW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int)
int32_t INT
Definition: typedefs.h:58
UINT WINAPI MsiFormatRecordW(MSIHANDLE, MSIHANDLE, LPWSTR, LPDWORD)
tagMSIMODIFY
Definition: msiquery.h:48
MSIDBERROR WINAPI MsiViewGetErrorW(MSIHANDLE, LPWSTR, LPDWORD)
UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE, PUINT)
Definition: suminfo.c:606
UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE, UINT, PUINT, LPINT, FILETIME *, LPSTR, LPDWORD)
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
UINT WINAPI MsiSetPropertyA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: package.c:2011
unsigned long MSIHANDLE
Definition: winemsi.idl:24
tagMSIDBSTATE
Definition: msiquery.h:141
UINT WINAPI MsiRecordSetInteger(MSIHANDLE, UINT, int)
Definition: record.c:303
UINT WINAPI MsiSetMode(MSIHANDLE, MSIRUNMODE, BOOL)
Definition: install.c:763
UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE, LPCWSTR, MSIHANDLE *)
INT WINAPI MsiProcessMessage(MSIHANDLE, INSTALLMESSAGE, MSIHANDLE)
Definition: package.c:1961
UINT WINAPI MsiGetFeatureValidStatesW(MSIHANDLE, LPCWSTR, LPDWORD)
MSICONDITION WINAPI MsiEvaluateConditionA(MSIHANDLE, LPCSTR)
int MSIMODIFY
Definition: winemsi.idl:33
const char * LPCSTR
Definition: xmlstorage.h:183
UINT WINAPI MsiViewExecute(MSIHANDLE, MSIHANDLE)
Definition: msiquery.c:518
UINT WINAPI MsiGetSourcePathA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
UINT WINAPI MsiSetComponentStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE)
Definition: install.c:1463
UINT WINAPI MsiPreviewDialogA(MSIHANDLE, LPCSTR)
Definition: dialog.c:4277
int MSICOLINFO
Definition: winemsi.idl:32
UINT WINAPI MsiGetFeatureValidStatesA(MSIHANDLE, LPCSTR, LPDWORD)
UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE, LPCSTR, MSIHANDLE *)
enum tagMSIDBERROR MSIDBERROR
UINT WINAPI MsiDatabaseExportW(MSIHANDLE, LPCWSTR, LPCWSTR, LPCWSTR)
UINT WINAPI MsiPreviewDialogW(MSIHANDLE, LPCWSTR)
Definition: dialog.c:4261
UINT WINAPI MsiDoActionW(MSIHANDLE, LPCWSTR)
Definition: install.c:64
tagMSICOLINFO
Definition: msiquery.h:34
UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE)
Definition: suminfo.c:1222
UINT WINAPI MsiGetTargetPathA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
UINT WINAPI MsiSetFeatureAttributesA(MSIHANDLE, LPCSTR, DWORD)
Definition: install.c:988
UINT WINAPI MsiDatabaseImportA(MSIHANDLE, LPCSTR, LPCSTR)
#define WINAPI
Definition: msvc.h:6
UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *)
UINT WINAPI MsiViewModify(MSIHANDLE, MSIMODIFY, MSIHANDLE)
Definition: msiquery.c:720
UINT WINAPI MsiSetComponentStateA(MSIHANDLE, LPCSTR, INSTALLSTATE)
Definition: install.c:1380
UINT WINAPI MsiGetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE *, INSTALLSTATE *)
unsigned long DWORD
Definition: ntddk_ex.h:95
UINT WINAPI MsiDatabaseExportA(MSIHANDLE, LPCSTR, LPCSTR, LPCSTR)
enum tagMSIRUNMODE MSIRUNMODE
UINT WINAPI MsiGetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1052
UINT WINAPI MsiRecordClearData(MSIHANDLE)
Definition: record.c:256
MSIHANDLE WINAPI MsiCreateRecord(UINT)
Definition: record.c:92
UINT WINAPI MsiSequenceW(MSIHANDLE, LPCWSTR, INT)
Definition: install.c:123
UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int)
Definition: install.c:1597
UINT WINAPI MsiSetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE)
Definition: install.c:947
enum tagMSIDBSTATE MSIDBSTATE
UINT WINAPI MsiGetFeatureCostW(MSIHANDLE, LPCWSTR, MSICOSTTREE, INSTALLSTATE, LPINT)
int INSTALLSTATE
Definition: winemsi.idl:31
int MSIDBERROR
Definition: winemsi.idl:35
enum tagMSICOLINFO MSICOLINFO
tagMSITRANSFORM_VALIDATE
Definition: msiquery.h:159
int MSIRUNMODE
Definition: winemsi.idl:30
UINT WINAPI MsiRecordSetStreamA(MSIHANDLE, UINT, LPCSTR)
enum tagMSIMODIFY MSIMODIFY
unsigned int UINT
Definition: ndis.h:50
UINT WINAPI MsiDatabaseGenerateTransformA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int)
UINT WINAPI MsiEnableUIPreview(MSIHANDLE, MSIHANDLE *)
Definition: dialog.c:4210
UINT WINAPI MsiSetFeatureAttributesW(MSIHANDLE, LPCWSTR, DWORD)
Definition: install.c:1018
UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *)
UINT WINAPI MsiRecordGetStringW(MSIHANDLE, UINT, LPWSTR, LPDWORD)
MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE)
Definition: package.c:1618
uint32_t * LPDWORD
Definition: typedefs.h:59
int MSICOSTTREE
Definition: winemsi.idl:34
UINT WINAPI MsiSequenceA(MSIHANDLE, LPCSTR, INT)
Definition: install.c:104
UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE, LPCSTR, MSIHANDLE *)
UINT WINAPI MsiCreateTransformSummaryInfoW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int)
UINT WINAPI MsiGetComponentStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE *, INSTALLSTATE *)
UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *)
Definition: database.c:317
UINT WINAPI MsiSetTargetPathA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: install.c:519
UINT WINAPI MsiDatabaseApplyTransformA(MSIHANDLE, LPCSTR, int)
UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *)
Definition: database.c:298
WCHAR * LPWSTR
Definition: xmlstorage.h:184
MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(MSIHANDLE, LPCWSTR)
UINT WINAPI MsiDoActionA(MSIHANDLE, LPCSTR)
Definition: install.c:45
UINT WINAPI MsiGetSourcePathW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
UINT WINAPI MsiRecordSetStringA(MSIHANDLE, UINT, LPCSTR)
UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME *, LPCWSTR)
unsigned int * PUINT
Definition: ndis.h:50
BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE)
Definition: install.c:670
int * LPINT
Definition: windef.h:178
enum tagMSITRANSFORM_VALIDATE MSITRANSFORM_VALIDATE