public override Version GetVersionPresent(object feature) { if (feature == DesktopComposition) { if (OnVista) { using (var dwmapi = NativeModule.TryLoad("dwmapi.dll")) { if (dwmapi != null) { if (dwmapi.ContainsProcedure("DwmIsCompositionEnabled")) { return(new Version(0, 0, 0, 0)); } } } } } if (feature == DropShadow) { if (OnXP) { return(new Version(0, 0, 0, 0)); } } return(base.GetVersionPresent(feature)); }