static OSVersionHelper() { PresentationNativeLoader.EnsureLoaded(); IsOsWindows10RS3OrGreater = IsWindows10RS3OrGreater(); IsOsWindows10RS2OrGreater = IsWindows10RS2OrGreater(); IsOsWindows10RS1OrGreater = IsWindows10RS1OrGreater(); IsOsWindows10TH2OrGreater = IsWindows10TH2OrGreater(); IsOsWindows10TH1OrGreater = IsWindows10TH1OrGreater(); IsOsWindows10OrGreater = IsWindows10OrGreater(); IsOsWindows8Point1OrGreater = IsWindows8Point1OrGreater(); IsOsWindows8OrGreater = IsWindows8OrGreater(); IsOsWindows7SP1OrGreater = IsWindows7SP1OrGreater(); IsOsWindows7OrGreater = IsWindows7OrGreater(); IsOsWindowsVistaSP2OrGreater = IsWindowsVistaSP2OrGreater(); IsOsWindowsVistaSP1OrGreater = IsWindowsVistaSP1OrGreater(); IsOsWindowsVistaOrGreater = IsWindowsVistaOrGreater(); IsOsWindowsXPSP3OrGreater = IsWindowsXPSP3OrGreater(); IsOsWindowsXPSP2OrGreater = IsWindowsXPSP2OrGreater(); IsOsWindowsXPSP1OrGreater = IsWindowsXPSP1OrGreater(); IsOsWindowsXPOrGreater = IsWindowsXPOrGreater(); IsOsWindowsServer = IsWindowsServer(); }
static NativeMethodsSetLastError() { // load the installed version of native DLLs, so that P/Invokes call the right methods PresentationNativeLoader.EnsureLoaded(); }