WinStd
Additional templates and function helpers for Microsoft Windows using Standard C++ classes
Functions
MSI.h File Reference

Integrates WinStd classes with Microsoft Installer API. More...

#include "Common.h"
#include <MsiQuery.h>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

template<class _Traits , class _Ax >
static UINT MsiGetPropertyA (MSIHANDLE hInstall, LPCSTR szName, std::basic_string< char, _Traits, _Ax > &sValue)
 Gets the value for an installer property and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiGetPropertyW (MSIHANDLE hInstall, LPCWSTR szName, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
 Gets the value for an installer property and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiRecordGetStringA (MSIHANDLE hRecord, unsigned int iField, std::basic_string< char, _Traits, _Ax > &sValue)
 Returns the string value of a record field and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiRecordGetStringW (MSIHANDLE hRecord, unsigned int iField, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
 Returns the string value of a record field and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiFormatRecordA (MSIHANDLE hInstall, MSIHANDLE hRecord, std::basic_string< char, _Traits, _Ax > &sValue)
 Formats record field data and properties using a format string and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiFormatRecordW (MSIHANDLE hInstall, MSIHANDLE hRecord, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
 Formats record field data and properties using a format string and stores it in a std::wstring string. More...
 
template<class _Ty , class _Ax >
static UINT MsiRecordReadStream (MSIHANDLE hRecord, unsigned int iField, std::vector< _Ty, _Ax > &binData)
 Reads bytes from a record stream field into a std::vector buffer. More...
 
template<class _Traits , class _Ax >
static UINT MsiGetTargetPathA (MSIHANDLE hInstall, LPCSTR szFolder, std::basic_string< char, _Traits, _Ax > &sValue)
 Returns the full target path for a folder in the Directory table and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static UINT MsiGetTargetPathW (MSIHANDLE hInstall, LPCWSTR szFolder, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
 Returns the full target path for a folder in the Directory table and stores it in a std::wstring string. More...
 
template<class _Traits , class _Ax >
static INSTALLSTATE MsiGetComponentPathA (LPCSTR szProduct, LPCSTR szComponent, std::basic_string< char, _Traits, _Ax > &sValue)
 Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned. More...
 
template<class _Traits , class _Ax >
static INSTALLSTATE MsiGetComponentPathW (LPCWSTR szProduct, LPCWSTR szComponent, std::basic_string< wchar_t, _Traits, _Ax > &sValue)
 Returns the full path to an installed component. If the key path for the component is a registry key then the registry key is returned. More...
 

Detailed Description

Integrates WinStd classes with Microsoft Installer API.