Skip to content

Commit

Permalink
[WINDOWS] versionhelper
Browse files Browse the repository at this point in the history
  • Loading branch information
outman-zhou committed Nov 21, 2019
1 parent 2c5ff61 commit ba7495b
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions mars/comm/windows/VersionHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@
* Copyright (c) Microsoft Corp. All rights reserved. *
* *
******************************************************************/
#include <winapifamily.h>
#include <Windows.h>

#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER

#pragma region Application Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)

#include <specstrings.h> // for _In_, etc.

#if !defined(__midl) && !defined(SORTPP_PASS)

#if (NTDDI_VERSION >= NTDDI_WINXP)

#ifndef _versionhelpers_H_INCLUDED_
Expand Down Expand Up @@ -108,30 +101,6 @@ IsWindows7SP1OrGreater()
return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN7), LOBYTE(_WIN32_WINNT_WIN7), 1);
}

// VERSIONHELPERAPI
// IsWindows8OrGreater()
// {
// return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN8), LOBYTE(_WIN32_WINNT_WIN8), 0);
// }

// VERSIONHELPERAPI
// IsWindows8Point1OrGreater()
// {
// return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINBLUE), LOBYTE(_WIN32_WINNT_WINBLUE), 0);
// }

// VERSIONHELPERAPI
// IsWindowsThresholdOrGreater()
// {
// return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINTHRESHOLD), LOBYTE(_WIN32_WINNT_WINTHRESHOLD), 0);
// }

// VERSIONHELPERAPI
// IsWindows10OrGreater()
// {
// return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WINTHRESHOLD), LOBYTE(_WIN32_WINNT_WINTHRESHOLD), 0);
// }

VERSIONHELPERAPI
IsWindowsServer()
{
Expand All @@ -145,8 +114,3 @@ IsWindowsServer()

#endif // NTDDI_VERSION

#endif // defined(__midl)

#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion

0 comments on commit ba7495b

Please sign in to comment.