Beispiel #1
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));
     }
 }