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);
     }
 }
 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);
     }
 }