https://git.reactos.org/?p=reactos.git;a=commitdiff;h=986cc5e8e29b6c670b007…
commit 986cc5e8e29b6c670b0072c8883b929cca1eae3a
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sat Feb 13 15:16:49 2021 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Feb 13 23:16:49 2021 +0900
[PSDK] winbase.h: Update LoadLibraryEx() dwFlags value defines (#3153)
* Deci-to-Hexa.
* Add more values.
* Add a Vista check.
---
sdk/include/psdk/winbase.h | 36 +++++++++++++++++++++++++-----------
1 file changed, 25 insertions(+), 11 deletions(-)
diff --git a/sdk/include/psdk/winbase.h b/sdk/include/psdk/winbase.h
index 1e683eeb37f..445c255b0ea 100644
--- a/sdk/include/psdk/winbase.h
+++ b/sdk/include/psdk/winbase.h
@@ -334,17 +334,31 @@ extern "C" {
#define PROCESS_HEAP_ENTRY_MOVEABLE 16
#define PROCESS_HEAP_ENTRY_DDESHARE 32
-#define DONT_RESOLVE_DLL_REFERENCES 1
-#define LOAD_LIBRARY_AS_DATAFILE 2
-#define LOAD_WITH_ALTERED_SEARCH_PATH 8
-#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 16
-#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 32
-#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 64
-#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 256
-#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 512
-#define LOAD_LIBRARY_SEARCH_USER_DIRS 1024
-#define LOAD_LIBRARY_SEARCH_SYSTEM32 2048
-#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 4096
+// LoadLibraryEx() dwFlags.
+#define DONT_RESOLVE_DLL_REFERENCES 0x00000001
+#define LOAD_LIBRARY_AS_DATAFILE 0x00000002
+// #define LOAD_PACKAGED_LIBRARY 0x00000004 // Internal use only.
+#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
+#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x00000010
+#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
+#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x00000020
+#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x00000040
+#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x00000080
+#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x00000100
+#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x00000200
+#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x00000400
+#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800
+#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000
+#endif // _WIN32_WINNT_VISTA
+#if (NTDDI_VERSION >= NTDDI_WIN10_RS1)
+#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000
+#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000
+#else // NTDDI_WIN10_RS1
+#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER LOAD_LIBRARY_SEARCH_SYSTEM32
+#endif // NTDDI_WIN10_RS1
+#if (NTDDI_VERSION >= NTDDI_WIN10_RS2)
+#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000
+#endif // NTDDI_WIN10_RS2
#define LMEM_FIXED 0
#define LMEM_MOVEABLE 2