コード例 #1
0
 internal static uint MsiSetFeatureState(int hInstall, string szFeature, int iState)
 {
     if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall))
     {
         return(NativeMethods.MsiSetFeatureState(hInstall, szFeature, iState));
     }
     else
     {
         return(RemotableNativeMethods.MsiFunc_ISI(
                    RemoteMsiFunctionId.MsiSetFeatureState,
                    RemotableNativeMethods.GetRemoteHandle(hInstall), szFeature, iState));
     }
 }
コード例 #2
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));
     }
 }
コード例 #3
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));
     }
 }
コード例 #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));
     }
 }