headers: enable GET_MODULE_HANDLE_EX_xxx defines in UWP builds

It's available in the Windows 11 SDK for all builds targeting FAMILY_APP and more.

Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
Steve Lhomme 2023-05-31 07:44:13 +02:00 committed by LIU Hao
parent b220602e1b
commit 4e0ae2d751

View File

@ -79,11 +79,13 @@ extern "C" {
#if (NTDDI_VERSION >= NTDDI_WIN10_RS2)
#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000
#endif
#endif /* WINAPI_PARTITION_DESKTOP */
#define GET_MODULE_HANDLE_EX_FLAG_PIN (0x1)
#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT (0x2)
#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS (0x4)
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
#define ENUMRESLANGPROC __MINGW_NAME_AW(ENUMRESLANGPROC)
#define ENUMRESNAMEPROC __MINGW_NAME_AW(ENUMRESNAMEPROC)
#define ENUMRESTYPEPROC __MINGW_NAME_AW(ENUMRESTYPEPROC)