OpenVPN
|
#include "msiex.h"
#include "../tapctl/error.h"
#include <windows.h>
#include <malloc.h>
#include <memory.h>
#include <msiquery.h>
Go to the source code of this file.
Functions | |
UINT | msi_get_string (_In_ MSIHANDLE hInstall, _In_z_ LPCTSTR szName, _Out_ LPTSTR *pszValue) |
Gets MSI property value. More... | |
UINT | msi_get_record_string (_In_ MSIHANDLE hRecord, _In_ unsigned int iField, _Out_ LPTSTR *pszValue) |
Gets MSI record string value. More... | |
UINT | msi_format_record (_In_ MSIHANDLE hInstall, _In_ MSIHANDLE hRecord, _Out_ LPTSTR *pszValue) |
Formats MSI record. More... | |
UINT | msi_format_field (_In_ MSIHANDLE hInstall, _In_ MSIHANDLE hRecord, _In_ unsigned int iField, _Out_ LPTSTR *pszValue) |
Formats MSI record field. More... | |
UINT msi_format_field | ( | _In_ MSIHANDLE | hInstall, |
_In_ MSIHANDLE | hRecord, | ||
_In_ unsigned int | iField, | ||
_Out_ LPTSTR * | pszValue | ||
) |
Formats MSI record field.
hInstall | Handle to the installation. This may be omitted, in which case only the record field parameters are processed and properties are not available for substitution. |
hRecord | Handle to the field record |
iField | Field index |
pszValue | Pointer to string to retrieve formatted value. The string must be released with free() after use. |
Definition at line 212 of file msiex.c.
References M_ERRNO, M_NONFATAL, msg, msi_format_record(), and msi_get_record_string().
Referenced by EvaluateTUNTAPAdapters().
Formats MSI record.
hInstall | Handle to the installation. This may be omitted, in which case only the record field parameters are processed and properties are not available for substitution. |
hRecord | Handle to the record to format. The template string must be stored in record field 0 followed by referenced data parameters. |
pszValue | Pointer to string to retrieve formatted value. The string must be released with free() after use. |
Definition at line 154 of file msiex.c.
References M_ERRNO, M_FATAL, M_NONFATAL, and msg.
Referenced by msi_format_field().
UINT msi_get_record_string | ( | _In_ MSIHANDLE | hRecord, |
_In_ unsigned int | iField, | ||
_Out_ LPTSTR * | pszValue | ||
) |
Gets MSI record string value.
hRecord | Handle to the record |
iField | Field index |
pszValue | Pointer to string to retrieve field value. The string must be released with free() after use. |
Definition at line 96 of file msiex.c.
References M_ERRNO, M_FATAL, M_NONFATAL, and msg.
Referenced by EvaluateTUNTAPAdapters(), and msi_format_field().
Gets MSI property value.
hInstall | Handle to the installation provided to the DLL custom action |
szName | Property name |
pszValue | Pointer to string to retrieve property value. The string must be released with free() after use. |
Definition at line 38 of file msiex.c.
References M_ERRNO, M_FATAL, M_NONFATAL, and msg.
Referenced by ProcessDeferredAction().