Tag: winapi

C++/WinRT version of SetFileTime

SetFileTime is simple and does not deserve a blog post: you have a file handle, you have date/time, you set it. C++/WinRT and UWP make the journey much more exciting. There is StorageItemContentProperties Class which provides access to the content-related properties of an item (like a file or folder). This includes file times which are…

Read the full article

GetFileVersionInfoSize and API sets

GetFileVersionInfoSizeW function in Requirements section lists: Minimum supported client Windows Vista [desktop apps only] Minimum supported server Windows Server 2008 [desktop apps only] Target Platform Windows Header winver.h (include Windows.h) Library Version.lib DLL Api-ms-win-core-version-l1-1-0.dll and this is inaccurate. The actual requirement DLL is api-ms-win-core-version-l1-1-1.dll instead. However, what does it mean exactly? Windows API sets: API Sets rely…

Read the full article

Windows Imaging Component (WIC) Interfaces

Just found a memo from 2016 about WIC API interfaces. The Windows Imaging Component (WIC) provides a Component Object Model (COM) based API for use in C and C++. The WIC API exposes a variety of image-related functionality, including […] Enjoy!

MediaFoundationDxgiCapabilities: GPU preference & Hybrid GPU systems

I added a section that enumerates DXGI adapters with the help IDXGIFactory6::EnumAdapterByGpuPreference – this is included into the produced output. Unfortunately the method does not distinguish between dual GPU systems, such as with discrete GPU and additional CPU integrated Intel GPU… DXGI Capabilities NOTE: Baseline capabilities are corresponding to DXGI 1.1 Windowed Stereo: 0 DXGI_FEATURE_PRESENT_ALLOW_TEARING:…

Read the full article