libobs: Add function to get the windows version

Microsoft basically deprecated GetVersion/GetVersionEx, so now you have
to query the file version of kernel32.dll in order to get the actual
windows version.  Because of the steps involved in getting the windows
version are fairly complicated, this is an exported libobs helper
function that can be used to get the windows version if needed.
(Microsoft does have its own set of helper functions for this but the
API feels a bit..  awkward, and you can't actually get the real windows
version with them)
This commit is contained in:
jp9000
2015-08-01 14:19:41 -07:00
parent 9a93e4b859
commit ef332ab8b6
3 changed files with 134 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ elseif(APPLE)
util/platform-nix.c
util/platform-cocoa.m)
set(libobs_PLATFORM_HEADERS
util/windows/win-version.h
util/windows/ComPtr.hpp
util/windows/CoTaskMemPtr.hpp
util/windows/HRError.hpp