mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 09:54:39 +08:00
headers: enabled LoadLibraryEx flags in Win10 19H1 UWP builds
Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
parent
0b414f47e2
commit
dd8acff7ca
@ -50,30 +50,6 @@ extern "C" {
|
||||
#define RESOURCE_ENUM_MODULE_EXACT (0x0010)
|
||||
|
||||
#define SUPPORT_LANG_NUMBER 32
|
||||
|
||||
#define DONT_RESOLVE_DLL_REFERENCES 0x1
|
||||
#define LOAD_LIBRARY_AS_DATAFILE 0x2
|
||||
#define LOAD_WITH_ALTERED_SEARCH_PATH 0x8
|
||||
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x10
|
||||
#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x20
|
||||
#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x40
|
||||
#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x80
|
||||
#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x100
|
||||
#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x200
|
||||
#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x400
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x800
|
||||
#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x1000
|
||||
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)
|
||||
#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000
|
||||
#else
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER LOAD_LIBRARY_SEARCH_SYSTEM32
|
||||
#endif
|
||||
|
||||
#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)
|
||||
@ -162,6 +138,30 @@ typedef const REDIRECTION_DESCRIPTOR *PCREDIRECTION_DESCRIPTOR;
|
||||
#endif
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || NTDDI_VERSION >= NTDDI_WIN10_19H1
|
||||
#define DONT_RESOLVE_DLL_REFERENCES 0x1
|
||||
#define LOAD_LIBRARY_AS_DATAFILE 0x2
|
||||
#define LOAD_WITH_ALTERED_SEARCH_PATH 0x8
|
||||
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x10
|
||||
#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x20
|
||||
#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x40
|
||||
#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x80
|
||||
#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x100
|
||||
#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x200
|
||||
#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x400
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x800
|
||||
#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x1000
|
||||
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)
|
||||
#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000
|
||||
#else
|
||||
#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER LOAD_LIBRARY_SEARCH_SYSTEM32
|
||||
#endif
|
||||
|
||||
#if (NTDDI_VERSION >= NTDDI_WIN10_RS2)
|
||||
#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000
|
||||
#endif
|
||||
|
||||
WINBASEAPI HRSRC WINAPI FindResourceExW (HMODULE hModule, LPCWSTR lpType, LPCWSTR lpName, WORD wLanguage);
|
||||
WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR lpModuleName);
|
||||
WINBASEAPI HMODULE WINAPI GetModuleHandleW (LPCWSTR lpModuleName);
|
||||
|
Loading…
Reference in New Issue
Block a user