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:
@@ -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;
|
||||
};
|
||||
|
@@ -32,6 +32,7 @@ struct win_version_info {
|
||||
EXPORT bool is_64_bit_windows(void);
|
||||
EXPORT bool get_dll_ver(const wchar_t *lib, struct win_version_info *info);
|
||||
EXPORT void get_win_ver(struct win_version_info *info);
|
||||
EXPORT uint32_t get_win_ver_int(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user