You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it's been long enough since we did the WACK update to unconditionally change the API partition. Otherwise, the way we've solved this in the past is to try and detect the installed SDK version to determine how we do these checks. E.g.
// GetModuleHandleExW was added to the app partition in version 22000 of the SDK
#if defined(NTDDI_WIN10_CO) ? WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) \
: WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
The support for
wil::unique_hkey
inwil/resource.h
is conditionally enabled based onWINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
here.This is out of sync with what protects
RegCloseKey()
andHKEY
. See line 237 inwinreg.h
in the Windows SDK.#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
This means if you don't build with
WINAPI_FAMILY
defined asWINAPI_FAMILY_DESKTOP_APP
you don't getwil::uniquey_hkey
.This caused problems for a shared library that wil::unique_hkey that needs to be consumed by UWP style apps.
The text was updated successfully, but these errors were encountered: