Esempio n. 1
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)));
     }
 }
Esempio n. 2
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));
     }
 }
Esempio n. 3
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));
     }
 }