Exemplo n.º 1
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));
     }
 }
Exemplo n.º 2
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));
     }
 }
Exemplo n.º 3
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)));
     }
 }
Exemplo n.º 4
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)));
     }
 }
Exemplo n.º 5
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));
     }
 }
Exemplo n.º 6
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));
     }
 }
Exemplo n.º 7
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));
     }
 }
Exemplo n.º 8
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));
     }
 }
Exemplo n.º 9
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));
     }
 }
Exemplo n.º 10
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));
     }
 }
Exemplo n.º 11
0
 internal static int MsiGetLastErrorRecord(int hAny)
 {
     // When remoting is enabled, we might need to create either a local or
     // remote record, depending on the handle it is to have an affinity with.
     // If no affinity handle is specified, create a remote record (the 99% case).
     if (!RemotingEnabled ||
         (hAny != 0 && !RemotableNativeMethods.IsRemoteHandle(hAny)))
     {
         return(NativeMethods.MsiGetLastErrorRecord());
     }
     else
     {
         int hRecord = unchecked ((int)RemotableNativeMethods.MsiFunc_III(
                                      RemoteMsiFunctionId.MsiGetLastErrorRecord, 0, 0, 0));
         return(RemotableNativeMethods.MakeRemoteHandle(hRecord));
     }
 }