ReactOS  0.4.14-dev-583-g2a1ba2c
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 {
163 
164 #ifdef __cplusplus
165 extern "C" {
166 #endif
167 
168 /* view manipulation */
174 #define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
177 #define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
178 
180 
181 /* record manipulation */
187 #define MsiRecordSetString WINELIB_NAME_AW(MsiRecordSetString)
190 #define MsiRecordGetString WINELIB_NAME_AW(MsiRecordGetString)
197 #define MsiFormatRecord WINELIB_NAME_AW(MsiFormatRecord)
200 #define MsiRecordSetStream WINELIB_NAME_AW(MsiRecordSetStream)
202 
205 #define MsiDatabaseGetPrimaryKeys WINELIB_NAME_AW(MsiDatabaseGetPrimaryKeys)
206 
207 /* installing */
210 #define MsiDoAction WINELIB_NAME_AW(MsiDoAction)
211 
212 /* database transforms */
215 #define MsiDatabaseApplyTransform WINELIB_NAME_AW(MsiDatabaseApplyTransform)
218 #define MsiDatabaseGenerateTransform WINELIB_NAME_AW(MsiDatabaseGenerateTransform)
219 
221 
222 /* install state */
225 #define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
228 #define MsiGetFeatureValidStates WINELIB_NAME_AW(MsiGetFeatureValidStates)
231 #define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
234 #define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
235 
238 #define MsiEvaluateCondition WINELIB_NAME_AW(MsiEvaluateCondition)
239 
240 /* property functions */
243 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
244 
247 #define MsiSetProperty WINELIB_NAME_AW(MsiSetProperty)
248 
251 #define MsiGetTargetPath WINELIB_NAME_AW(MsiGetTargetPath)
252 
255 #define MsiSetTargetPath WINELIB_NAME_AW(MsiSetTargetPath)
256 
259 #define MsiGetSourcePath WINELIB_NAME_AW(MsiGetSourcePath)
260 
262 
265 
268 #define MsiSetFeatureAttributes WINELIB_NAME_AW(MsiSetFeatureAttributes)
269 
272 #define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
273 
276 #define MsiPreviewDialog WINELIB_NAME_AW(MsiPreviewDialog)
277 
280 #define MsiPreviewBillboard WINELIB_NAME_AW(MsiPreviewBillboard)
281 
284 #define MsiCreateTransformSummaryInfo WINELIB_NAME_AW(MsiCreateTransformSummaryInfo)
285 
288 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
289 
292 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
293 
296 #define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
297 
300 #define MsiDatabaseExport WINELIB_NAME_AW(MsiDatabaseExport)
301 
304 #define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
305 
308 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
309 
312 #define MsiDatabaseIsTablePersistent WINELIB_NAME_AW(MsiDatabaseIsTablePersistent)
313 
316 #define MsiSequence WINELIB_NAME_AW(MsiSequence)
317 
320 
324 
326 
329 #define MsiGetFeatureCost WINELIB_NAME_AW(MsiGetFeatureCost)
330 
332 
334 
336 
337 #ifdef __cplusplus
338 }
339 #endif
340 
341 #endif /* __WINE_MSIQUERY_H */
UINT WINAPI MsiRecordSetStringW(MSIHANDLE, UINT, LPCWSTR)
Definition: record.c:656
int INSTALLMESSAGE
Definition: msiserver.idl:32
LANGID WINAPI MsiGetLanguage(MSIHANDLE)
Definition: install.c:1615
UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE, MSICOLINFO, MSIHANDLE *)
Definition: msiquery.c:569
int WINAPI MsiRecordGetInteger(MSIHANDLE, UINT)
Definition: record.c:271
MSIHANDLE WINAPI MsiGetLastErrorRecord(void)
Definition: msiquery.c:710
UINT WINAPI MsiDatabaseCommit(MSIHANDLE)
Definition: msiquery.c:813
enum tagMSICOSTTREE MSICOSTTREE
UINT WINAPI MsiGetTargetPathW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
Definition: install.c:332
UINT WINAPI MsiFormatRecordA(MSIHANDLE, MSIHANDLE, LPSTR, LPDWORD)
Definition: format.c:966
BOOL WINAPI MsiRecordIsNull(MSIHANDLE, UINT)
Definition: record.c:381
UINT WINAPI MsiPreviewBillboardA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: dialog.c:4241
UINT WINAPI MsiDatabaseImportW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: database.c:873
UINT WINAPI MsiRecordReadStream(MSIHANDLE, UINT, char *, LPDWORD)
Definition: record.c:872
UINT WINAPI MsiRecordGetStringA(MSIHANDLE, UINT, LPSTR, LPDWORD)
Definition: record.c:451
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
UINT WINAPI MsiSetPropertyW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: package.c:2211
UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE, UINT, PUINT, LPINT, FILETIME *, LPWSTR, LPDWORD)
Definition: suminfo.c:750
tagMSICOSTTREE
Definition: msiquery.h:40
UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE, LPCWSTR, MSIHANDLE *)
Definition: msiquery.c:241
MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(MSIHANDLE, LPCSTR)
Definition: msiquery.c:1003
MSICONDITION WINAPI MsiEvaluateConditionW(MSIHANDLE, LPCWSTR)
Definition: cond.tab.c:2496
UINT WINAPI MsiGetComponentStateA(MSIHANDLE, LPCSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1448
tagMSICONDITION
Definition: msiquery.h:24
tagMSIRUNMODE
Definition: msiquery.h:81
tagMSIDBERROR
Definition: msiquery.h:104
UINT WINAPI MsiRecordSetStreamW(MSIHANDLE, UINT, LPCWSTR)
Definition: record.c:796
UINT WINAPI MsiSetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE)
Definition: install.c:839
UINT WINAPI MsiViewClose(MSIHANDLE)
Definition: msiquery.c:427
UINT WINAPI MsiDatabaseApplyTransformW(MSIHANDLE, LPCWSTR, int)
Definition: msiquery.c:752
UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME *, LPCSTR)
Definition: suminfo.c:863
WORD LANGID
Definition: typedefs.h:79
MSIDBSTATE WINAPI MsiGetDatabaseState(MSIHANDLE)
Definition: database.c:2001
MSIDBERROR WINAPI MsiViewGetErrorA(MSIHANDLE, LPSTR, LPDWORD)
Definition: msiquery.c:678
UINT WINAPI MsiSetTargetPathW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: install.c:603
UINT WINAPI MsiRecordDataSize(MSIHANDLE, UINT)
Definition: record.c:584
char * LPSTR
Definition: xmlstorage.h:182
int MSIRUNMODE
Definition: msiserver.idl:34
UINT WINAPI MsiPreviewBillboardW(MSIHANDLE, LPCWSTR, LPCWSTR)
Definition: dialog.c:4235
UINT WINAPI MsiGetFeatureCostA(MSIHANDLE, LPCSTR, MSICOSTTREE, INSTALLSTATE, LPINT)
Definition: install.c:1174
enum tagMSICONDITION MSICONDITION
UINT WINAPI MsiCreateTransformSummaryInfoA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int)
Definition: suminfo.c:1169
UINT WINAPI MsiRecordGetFieldCount(MSIHANDLE)
Definition: record.c:116
UINT WINAPI MsiViewFetch(MSIHANDLE, MSIHANDLE *)
Definition: msiquery.c:385
UINT WINAPI MsiDatabaseGenerateTransformW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int)
Definition: msiquery.c:805
int32_t INT
Definition: typedefs.h:56
UINT WINAPI MsiFormatRecordW(MSIHANDLE, MSIHANDLE, LPWSTR, LPDWORD)
Definition: format.c:901
unsigned long MSIHANDLE
Definition: msiserver.idl:25
tagMSIMODIFY
Definition: msiquery.h:48
MSIDBERROR WINAPI MsiViewGetErrorW(MSIHANDLE, LPWSTR, LPDWORD)
Definition: msiquery.c:646
UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE, PUINT)
Definition: suminfo.c:609
UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
Definition: package.c:2488
UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE, UINT, PUINT, LPINT, FILETIME *, LPSTR, LPDWORD)
Definition: suminfo.c:722
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
Definition: package.c:2507
UINT WINAPI MsiSetPropertyA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: package.c:2108
tagMSIDBSTATE
Definition: msiquery.h:141
UINT WINAPI MsiRecordSetInteger(MSIHANDLE, UINT, int)
Definition: record.c:351
UINT WINAPI MsiSetMode(MSIHANDLE, MSIRUNMODE, BOOL)
Definition: install.c:782
UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE, LPCWSTR, MSIHANDLE *)
Definition: msiquery.c:937
INT WINAPI MsiProcessMessage(MSIHANDLE, INSTALLMESSAGE, MSIHANDLE)
Definition: package.c:2052
UINT WINAPI MsiGetFeatureValidStatesW(MSIHANDLE, LPCWSTR, LPDWORD)
Definition: install.c:1712
MSICONDITION WINAPI MsiEvaluateConditionA(MSIHANDLE, LPCSTR)
Definition: cond.tab.c:2540
const char * LPCSTR
Definition: xmlstorage.h:183
UINT WINAPI MsiViewExecute(MSIHANDLE, MSIHANDLE)
Definition: msiquery.c:459
UINT WINAPI MsiGetSourcePathA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
Definition: install.c:484
UINT WINAPI MsiSetComponentStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE)
Definition: install.c:1515
UINT WINAPI MsiPreviewDialogA(MSIHANDLE, LPCSTR)
Definition: dialog.c:4217
UINT WINAPI MsiGetFeatureValidStatesA(MSIHANDLE, LPCSTR, LPDWORD)
Definition: install.c:1725
UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE, LPCSTR, MSIHANDLE *)
Definition: msiquery.c:983
enum tagMSIDBERROR MSIDBERROR
UINT WINAPI MsiDatabaseExportW(MSIHANDLE, LPCWSTR, LPCWSTR, LPCWSTR)
Definition: database.c:1197
UINT WINAPI MsiPreviewDialogW(MSIHANDLE, LPCWSTR)
Definition: dialog.c:4201
UINT WINAPI MsiDoActionW(MSIHANDLE, LPCWSTR)
Definition: install.c:64
tagMSICOLINFO
Definition: msiquery.h:34
UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE)
Definition: suminfo.c:1152
UINT WINAPI MsiGetTargetPathA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD)
Definition: install.c:306
UINT WINAPI MsiSetFeatureAttributesA(MSIHANDLE, LPCSTR, DWORD)
Definition: install.c:1023
UINT WINAPI MsiDatabaseImportA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: database.c:900
#define WINAPI
Definition: msvc.h:6
UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *)
Definition: suminfo.c:514
UINT WINAPI MsiViewModify(MSIHANDLE, MSIMODIFY, MSIHANDLE)
Definition: msiquery.c:623
UINT WINAPI MsiSetComponentStateA(MSIHANDLE, LPCSTR, INSTALLSTATE)
Definition: install.c:1432
UINT WINAPI MsiGetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1123
unsigned long DWORD
Definition: ntddk_ex.h:95
UINT WINAPI MsiDatabaseExportA(MSIHANDLE, LPCSTR, LPCSTR, LPCSTR)
Definition: database.c:1226
enum tagMSIRUNMODE MSIRUNMODE
UINT WINAPI MsiGetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1087
UINT WINAPI MsiRecordClearData(MSIHANDLE)
Definition: record.c:290
MSIHANDLE WINAPI MsiCreateRecord(UINT)
Definition: record.c:95
UINT WINAPI MsiSequenceW(MSIHANDLE, LPCWSTR, INT)
Definition: install.c:136
UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int)
Definition: install.c:1670
UINT WINAPI MsiSetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE)
Definition: install.c:972
enum tagMSIDBSTATE MSIDBSTATE
UINT WINAPI MsiGetFeatureCostW(MSIHANDLE, LPCWSTR, MSICOSTTREE, INSTALLSTATE, LPINT)
Definition: install.c:1253
int MSICONDITION
Definition: msiserver.idl:33
enum tagMSICOLINFO MSICOLINFO
int INSTALLSTATE
Definition: msiserver.idl:35
tagMSITRANSFORM_VALIDATE
Definition: msiquery.h:148
UINT WINAPI MsiRecordSetStreamA(MSIHANDLE, UINT, LPCSTR)
Definition: record.c:777
enum tagMSIMODIFY MSIMODIFY
unsigned int UINT
Definition: ndis.h:50
UINT WINAPI MsiDatabaseGenerateTransformA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int)
Definition: msiquery.c:797
UINT WINAPI MsiEnableUIPreview(MSIHANDLE, MSIHANDLE *)
Definition: dialog.c:4137
UINT WINAPI MsiSetFeatureAttributesW(MSIHANDLE, LPCWSTR, DWORD)
Definition: install.c:1053
UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *)
Definition: suminfo.c:586
UINT WINAPI MsiRecordGetStringW(MSIHANDLE, UINT, LPWSTR, LPDWORD)
Definition: record.c:533
MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE)
Definition: package.c:1692
uint32_t * LPDWORD
Definition: typedefs.h:57
UINT WINAPI MsiSequenceA(MSIHANDLE, LPCSTR, INT)
Definition: install.c:117
UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE, LPCSTR, MSIHANDLE *)
Definition: msiquery.c:88
UINT WINAPI MsiCreateTransformSummaryInfoW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int)
Definition: suminfo.c:1184
UINT WINAPI MsiGetComponentStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE *, INSTALLSTATE *)
Definition: install.c:1563
UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *)
Definition: database.c:322
UINT WINAPI MsiSetTargetPathA(MSIHANDLE, LPCSTR, LPCSTR)
Definition: install.c:522
UINT WINAPI MsiDatabaseApplyTransformA(MSIHANDLE, LPCSTR, int)
Definition: msiquery.c:778
UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *)
Definition: database.c:303
WCHAR * LPWSTR
Definition: xmlstorage.h:184
MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(MSIHANDLE, LPCWSTR)
Definition: msiquery.c:1023
UINT WINAPI MsiDoActionA(MSIHANDLE, LPCSTR)
Definition: install.c:45
UINT WINAPI MsiGetSourcePathW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD)
Definition: install.c:506
UINT WINAPI MsiRecordSetStringA(MSIHANDLE, UINT, LPCSTR)
Definition: record.c:601
UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME *, LPCWSTR)
Definition: suminfo.c:832
unsigned int * PUINT
Definition: ndis.h:50
BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE)
Definition: install.c:690
int * LPINT
Definition: windef.h:178
enum tagMSITRANSFORM_VALIDATE MSITRANSFORM_VALIDATE