internal static uint MsiSetTargetPath(int hInstall, string szFolder, string szFolderPath) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSetTargetPath(hInstall, szFolder, szFolderPath)); } else { return(RemotableNativeMethods.MsiFunc_ISS( RemoteMsiFunctionId.MsiSetTargetPath, RemotableNativeMethods.GetRemoteHandle(hInstall), szFolder, szFolderPath)); } }
internal static uint MsiSetInstallLevel(int hInstall, int iInstallLevel) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSetInstallLevel(hInstall, iInstallLevel)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiSetInstallLevel, RemotableNativeMethods.GetRemoteHandle(hInstall), iInstallLevel, 0)); } }
internal static uint MsiVerifyDiskSpace(int hInstall) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiVerifyDiskSpace(hInstall)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiVerifyDiskSpace, RemotableNativeMethods.GetRemoteHandle(hInstall), 0, 0)); } }
internal static uint MsiSetFeatureAttributes(int hInstall, string szFeature, uint dwAttributes) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSetFeatureAttributes(hInstall, szFeature, dwAttributes)); } else { return(RemotableNativeMethods.MsiFunc_ISI( RemoteMsiFunctionId.MsiSetFeatureAttributes, RemotableNativeMethods.GetRemoteHandle(hInstall), szFeature, (int)dwAttributes)); } }
internal static uint MsiViewModify(int hView, int iModifyMode, int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hView)) { return(NativeMethods.MsiViewModify(hView, iModifyMode, hRecord)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiViewModify, RemotableNativeMethods.GetRemoteHandle(hView), iModifyMode, RemotableNativeMethods.GetRemoteHandle(hRecord))); } }
internal static uint MsiSequence(int hInstall, string szTable, int iSequenceMode) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSequence(hInstall, szTable, iSequenceMode)); } else { return(RemotableNativeMethods.MsiFunc_ISI( RemoteMsiFunctionId.MsiSequence, RemotableNativeMethods.GetRemoteHandle(hInstall), szTable, iSequenceMode)); } }
internal static uint MsiRecordClearData(int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiRecordClearData(hRecord)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiRecordClearData, RemotableNativeMethods.GetRemoteHandle(hRecord), 0, 0)); } }
internal static bool MsiRecordIsNull(int hRecord, uint iField) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiRecordIsNull(hRecord, iField)); } else { return(0 != RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiRecordIsNull, RemotableNativeMethods.GetRemoteHandle(hRecord), (int)iField, 0)); } }
internal static uint MsiEvaluateCondition(int hInstall, string szCondition) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiEvaluateCondition(hInstall, szCondition)); } else { return(RemotableNativeMethods.MsiFunc_ISI( RemoteMsiFunctionId.MsiEvaluateCondition, RemotableNativeMethods.GetRemoteHandle(hInstall), szCondition, 0)); } }
internal static uint MsiSetProperty(int hInstall, string szName, string szValue) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSetProperty(hInstall, szName, szValue)); } else { return(RemotableNativeMethods.MsiFunc_ISS( RemoteMsiFunctionId.MsiSetProperty, RemotableNativeMethods.GetRemoteHandle(hInstall), szName, szValue)); } }
internal static uint MsiSetComponentState(int hInstall, string szComponent, int iState) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiSetComponentState(hInstall, szComponent, iState)); } else { return(RemotableNativeMethods.MsiFunc_ISI( RemoteMsiFunctionId.MsiSetComponentState, RemotableNativeMethods.GetRemoteHandle(hInstall), szComponent, iState)); } }
internal static uint MsiViewExecute(int hView, int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hView)) { return(NativeMethods.MsiViewExecute(hView, hRecord)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiViewExecute, RemotableNativeMethods.GetRemoteHandle(hView), RemotableNativeMethods.GetRemoteHandle(hRecord), 0)); } }
internal static int MsiGetLanguage(int hInstall) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetLanguage(hInstall)); } else { return(unchecked ((int)RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiGetLanguage, RemotableNativeMethods.GetRemoteHandle(hInstall), 0, 0))); } }
internal static uint MsiRecordSetString(int hRecord, uint iField, string szValue) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiRecordSetString(hRecord, iField, szValue)); } else { return(RemotableNativeMethods.MsiFunc_IIS( RemoteMsiFunctionId.MsiRecordSetString, RemotableNativeMethods.GetRemoteHandle(hRecord), (int)iField, szValue)); } }
internal static bool MsiGetMode(int hInstall, uint iRunMode) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetMode(hInstall, iRunMode)); } else { return(0 != RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiGetMode, RemotableNativeMethods.GetRemoteHandle(hInstall), (int)iRunMode, 0)); } }
internal static uint MsiRecordSetInteger(int hRecord, uint iField, int iValue) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiRecordSetInteger(hRecord, iField, iValue)); } else { return(RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiRecordSetInteger, RemotableNativeMethods.GetRemoteHandle(hRecord), (int)iField, iValue)); } }
internal static uint MsiDatabaseIsTablePersistent(int hDatabase, string szTableName) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hDatabase)) { return(NativeMethods.MsiDatabaseIsTablePersistent(hDatabase, szTableName)); } else { return(RemotableNativeMethods.MsiFunc_ISI( RemoteMsiFunctionId.MsiDatabaseIsTablePersistent, RemotableNativeMethods.GetRemoteHandle(hDatabase), szTableName, 0)); } }
internal static int MsiViewGetError(int hView, StringBuilder szColumnNameBuffer, ref uint cchBuf) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hView)) { return(NativeMethods.MsiViewGetError(hView, szColumnNameBuffer, ref cchBuf)); } else { return(unchecked ((int)RemotableNativeMethods.MsiFunc_II_S( RemoteMsiFunctionId.MsiViewGetError, RemotableNativeMethods.GetRemoteHandle(hView), 0, szColumnNameBuffer, ref cchBuf))); } }
internal static int MsiGetActiveDatabase(int hInstall) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetActiveDatabase(hInstall)); } else { int hDatabase = (int)RemotableNativeMethods.MsiFunc_III( RemoteMsiFunctionId.MsiGetActiveDatabase, RemotableNativeMethods.GetRemoteHandle(hInstall), 0, 0); return(RemotableNativeMethods.MakeRemoteHandle(hDatabase)); } }
internal static uint MsiRecordGetString(int hRecord, uint iField, StringBuilder szValueBuf, ref uint cchValueBuf) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiRecordGetString(hRecord, iField, szValueBuf, ref cchValueBuf)); } else { return(RemotableNativeMethods.MsiFunc_II_S( RemoteMsiFunctionId.MsiRecordGetString, RemotableNativeMethods.GetRemoteHandle(hRecord), (int)iField, szValueBuf, ref cchValueBuf)); } }
internal static uint MsiFormatRecord(int hInstall, int hRecord, StringBuilder szResultBuf, ref uint cchResultBuf) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hRecord)) { return(NativeMethods.MsiFormatRecord(hInstall, hRecord, szResultBuf, ref cchResultBuf)); } else { return(RemotableNativeMethods.MsiFunc_II_S( RemoteMsiFunctionId.MsiFormatRecord, RemotableNativeMethods.GetRemoteHandle(hInstall), RemotableNativeMethods.GetRemoteHandle(hRecord), szResultBuf, ref cchResultBuf)); } }
internal static uint MsiGetProperty(int hInstall, string szName, StringBuilder szValueBuf, ref uint cchValueBuf) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetProperty(hInstall, szName, szValueBuf, ref cchValueBuf)); } else { return(RemotableNativeMethods.MsiFunc_IS_S( RemoteMsiFunctionId.MsiGetProperty, RemotableNativeMethods.GetRemoteHandle(hInstall), szName, szValueBuf, ref cchValueBuf)); } }
internal static uint MsiGetFeatureState(int hInstall, string szFeature, out int iInstalled, out int iAction) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetFeatureState(hInstall, szFeature, out iInstalled, out iAction)); } else { return(RemotableNativeMethods.MsiFunc_IS_II( RemoteMsiFunctionId.MsiGetFeatureState, RemotableNativeMethods.GetRemoteHandle(hInstall), szFeature, out iInstalled, out iAction)); } }
internal static uint MsiGetSourcePath(int hInstall, string szFolder, StringBuilder szPathBuf, ref uint cchPathBuf) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetSourcePath(hInstall, szFolder, szPathBuf, ref cchPathBuf)); } else { return(RemotableNativeMethods.MsiFunc_IS_S( RemoteMsiFunctionId.MsiGetSourcePath, RemotableNativeMethods.GetRemoteHandle(hInstall), szFolder, szPathBuf, ref cchPathBuf)); } }
internal static uint MsiViewFetch(int hView, out int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hView)) { return(NativeMethods.MsiViewFetch(hView, out hRecord)); } else { uint err = RemotableNativeMethods.MsiFunc_II_I( RemoteMsiFunctionId.MsiViewFetch, RemotableNativeMethods.GetRemoteHandle(hView), 0, out hRecord); hRecord = RemotableNativeMethods.MakeRemoteHandle(hRecord); return(err); } }
internal static uint MsiGetFeatureCost(int hInstall, string szFeature, int iCostTree, int iState, out int iCost) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetFeatureCost(hInstall, szFeature, iCostTree, iState, out iCost)); } else { return(RemotableNativeMethods.MsiFunc_ISII_I( RemoteMsiFunctionId.MsiGetFeatureCost, RemotableNativeMethods.GetRemoteHandle(hInstall), szFeature, iCostTree, iState, out iCost)); } }
internal static uint MsiViewGetColumnInfo(int hView, uint eColumnInfo, out int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hView)) { return(NativeMethods.MsiViewGetColumnInfo(hView, eColumnInfo, out hRecord)); } else { uint err = RemotableNativeMethods.MsiFunc_II_I( RemoteMsiFunctionId.MsiViewGetColumnInfo, RemotableNativeMethods.GetRemoteHandle(hView), (int)eColumnInfo, out hRecord); hRecord = RemotableNativeMethods.MakeRemoteHandle(hRecord); return(err); } }
internal static uint MsiGetSummaryInformation(int hDatabase, string szDatabasePath, uint uiUpdateCount, out int hSummaryInfo) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hDatabase)) { return(NativeMethods.MsiGetSummaryInformation(hDatabase, szDatabasePath, uiUpdateCount, out hSummaryInfo)); } else { uint err = RemotableNativeMethods.MsiFunc_ISII_I( RemoteMsiFunctionId.MsiGetSummaryInformation, RemotableNativeMethods.GetRemoteHandle(hDatabase), szDatabasePath, (int)uiUpdateCount, 0, out hSummaryInfo); hSummaryInfo = RemotableNativeMethods.MakeRemoteHandle(hSummaryInfo); return(err); } }
internal static uint MsiDatabaseOpenView(int hDatabase, string szQuery, out int hView) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hDatabase)) { return(NativeMethods.MsiDatabaseOpenView(hDatabase, szQuery, out hView)); } else { uint err = RemotableNativeMethods.MsiFunc_ISII_I( RemoteMsiFunctionId.MsiDatabaseOpenView, RemotableNativeMethods.GetRemoteHandle(hDatabase), szQuery, 0, 0, out hView); hView = RemotableNativeMethods.MakeRemoteHandle(hView); return(err); } }
internal static uint MsiDatabaseGetPrimaryKeys(int hDatabase, string szTableName, out int hRecord) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hDatabase)) { return(NativeMethods.MsiDatabaseGetPrimaryKeys(hDatabase, szTableName, out hRecord)); } else { uint err = RemotableNativeMethods.MsiFunc_ISII_I( RemoteMsiFunctionId.MsiDatabaseGetPrimaryKeys, RemotableNativeMethods.GetRemoteHandle(hDatabase), szTableName, 0, 0, out hRecord); hRecord = RemotableNativeMethods.MakeRemoteHandle(hRecord); return(err); } }