internal static uint MsiGetComponentState(int hInstall, string szComponent, out int iInstalled, out int iAction) { if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall)) { return(NativeMethods.MsiGetComponentState(hInstall, szComponent, out iInstalled, out iAction)); } else { return(RemotableNativeMethods.MsiFunc_IS_II( RemoteMsiFunctionId.MsiGetComponentState, RemotableNativeMethods.GetRemoteHandle(hInstall), szComponent, out iInstalled, out iAction)); } }