OS Version preview

This commit is contained in:
Bashar Astifan committed 2024-09-03 15:58:35 +04:00
1 parent 2694104531
commit b235d4b218
7 files changed
+104 -18

No files matched your search

+9
View File
@@ -7,7 +7,16 @@
bool IsVistaOrHigher();
bool IsWin7OrHigher();
bool DoesVersionMatchWindows(uint32_t major, uint32_t minor, uint32_t spMajor, uint32_t spMinor, bool acceptGreater);
std::string GetWindowsVersion();
// Platforms like UWP has their own API,
// so we use versionInfo to pass version info from outside
// on Win32 it will use kernel (normal behavior) when versionInfo is 0
std::string GetWindowsVersion(uint64_t versionInfo);
std::string GetWindowsVersion(uint32_t& outMajor, uint32_t& outMinor, uint32_t& outBuild);
std::string GetWindowsVersion(uint64_t versionInfo, uint32_t& outMajor, uint32_t& outMinor, uint32_t& outBuild);
std::string GetWindowsSystemArchitecture();
#endif