void configurePreshutdown() { Version versionWinVistaSp1 = new Version(6, 0, 6001); if (Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version >= versionWinVistaSp1) { _preShutdownEnabler = new ServiceBasePreshutdownEnabler(this); _preShutdownEnabler.EnablePreshutdownAccepted(); } }