Пример #1
0
 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));
     }
 }
Пример #2
0
 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));
     }
 }
Пример #3
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));
     }
 }
Пример #4
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));
     }
 }
Пример #5
0
 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)));
     }
 }
Пример #6
0
 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));
     }
 }
Пример #7
0
 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));
     }
 }
Пример #8
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));
     }
 }
Пример #9
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));
     }
 }
Пример #10
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));
     }
 }
Пример #11
0
 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));
     }
 }
Пример #12
0
 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));
     }
 }
Пример #13
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)));
     }
 }
Пример #14
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));
     }
 }
Пример #15
0
 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));
     }
 }
Пример #16
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));
     }
 }
Пример #17
0
 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));
     }
 }
Пример #18
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)));
     }
 }
Пример #19
0
 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));
     }
 }
Пример #20
0
 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));
     }
 }
Пример #21
0
 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));
     }
 }
Пример #22
0
 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));
     }
 }
Пример #23
0
 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));
     }
 }
Пример #24
0
 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));
     }
 }
Пример #25
0
 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);
     }
 }
Пример #26
0
 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));
     }
 }
Пример #27
0
 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);
     }
 }
Пример #28
0
 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);
     }
 }
Пример #29
0
 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);
     }
 }
Пример #30
0
 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);
     }
 }