kernel32: New flags added to LoadLibraryEx.
This commit is contained in:
parent
cde2a4150c
commit
dfb88608e3
|
@ -848,6 +848,14 @@ static HMODULE load_library( const UNICODE_STRING *libname, DWORD flags )
|
|||
NTSTATUS nts;
|
||||
HMODULE hModule;
|
||||
WCHAR *load_path;
|
||||
static const DWORD unsupported_flags =
|
||||
LOAD_IGNORE_CODE_AUTHZ_LEVEL |
|
||||
LOAD_LIBRARY_AS_IMAGE_RESOURCE |
|
||||
LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE |
|
||||
LOAD_LIBRARY_REQUIRE_SIGNED_TARGET;
|
||||
|
||||
if( flags & unsupported_flags)
|
||||
FIXME("unsupported flag(s) used (flags: 0x%08x)\n", flags & ~unsupported_flags);
|
||||
|
||||
load_path = MODULE_get_dll_load_path( flags & LOAD_WITH_ALTERED_SEARCH_PATH ? libname->Buffer : NULL );
|
||||
|
||||
|
|
|
@ -806,6 +806,10 @@ DECL_WINELIB_TYPE_AW(ENUMRESLANGPROC)
|
|||
#define DONT_RESOLVE_DLL_REFERENCES 0x00000001
|
||||
#define LOAD_LIBRARY_AS_DATAFILE 0x00000002
|
||||
#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008
|
||||
#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x00000010
|
||||
#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x00000020
|
||||
#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x00000040
|
||||
#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x00000080
|
||||
|
||||
#define GET_MODULE_HANDLE_EX_FLAG_PIN 1
|
||||
#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT 2
|
||||
|
|
Loading…
Reference in New Issue