libobs/util: Add get_win_ver_int() func (windows)

Returns the current version number of windows.  The lowest byte is the
minor version number, then the next lowest byte is the major version
number.  E.g. 0x601 for Windows 7, 0x602 for Windows 8, 0x603 for
Windows 8.1, and 0xA00 for Windows 10.
This commit is contained in:
jp9000
2018-10-10 03:41:52 -07:00
parent 28d0cc8b97
commit 2e1a19456a
2 changed files with 6 additions and 0 deletions

View File

@@ -875,6 +875,11 @@ void get_win_ver(struct win_version_info *info)
*info = ver;
}
uint32_t get_win_ver_int(void)
{
return get_winver();
}
struct os_inhibit_info {
bool active;
};