OpenVPN
msiex.h
Go to the documentation of this file.
1 /*
2  * openvpnmsica -- Custom Action DLL to provide OpenVPN-specific support to MSI packages
3  * https://community.openvpn.net/openvpn/wiki/OpenVPNMSICA
4  *
5  * Copyright (C) 2018 Simon Rozman <simon@rozman.si>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2
9  * as published by the Free Software Foundation.
10  *
11  * This program 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
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef MSIHLP_H
22 #define MSIHLP_H
23 
24 #include <windows.h>
25 #include <msi.h>
26 #include "../tapctl/basic.h"
27 
28 
41 UINT
43  _In_ MSIHANDLE hInstall,
44  _In_z_ LPCTSTR szName,
45  _Out_ LPTSTR *pszValue);
46 
47 
60 UINT
62  _In_ MSIHANDLE hRecord,
63  _In_ unsigned int iField,
64  _Out_ LPTSTR *pszValue);
65 
66 
82 UINT
84  _In_ MSIHANDLE hInstall,
85  _In_ MSIHANDLE hRecord,
86  _Out_ LPTSTR *pszValue);
87 
88 
105 UINT
107  _In_ MSIHANDLE hInstall,
108  _In_ MSIHANDLE hRecord,
109  _In_ unsigned int iField,
110  _Out_ LPTSTR *pszValue);
111 
112 #endif /* ifndef MSIHLP_H */
LPCTSTR szName
Definition: openvpnmsica.c:67
UINT msi_get_record_string(_In_ MSIHANDLE hRecord, _In_ unsigned int iField, _Out_ LPTSTR *pszValue)
Gets MSI record string value.
Definition: msiex.c:98
UINT msi_format_field(_In_ MSIHANDLE hInstall, _In_ MSIHANDLE hRecord, _In_ unsigned int iField, _Out_ LPTSTR *pszValue)
Formats MSI record field.
Definition: msiex.c:214
#define _Out_
Definition: basic.h:46
#define _In_
Definition: basic.h:34
UINT msi_format_record(_In_ MSIHANDLE hInstall, _In_ MSIHANDLE hRecord, _Out_ LPTSTR *pszValue)
Formats MSI record.
Definition: msiex.c:156
UINT msi_get_string(_In_ MSIHANDLE hInstall, _In_z_ LPCTSTR szName, _Out_ LPTSTR *pszValue)
Gets MSI property value.
Definition: msiex.c:40
#define _In_z_
Definition: basic.h:40