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