#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
// rev
/**
* The LdrGetDllHandleByName routine retrieves a module handle by base name and/or full path for a DLL already loaded in the calling process.
*
* \param BaseDllName Optional base file name (e.g., "kernel32.dll"). Note: Matching is case-insensitive.
* \param FullDllName Optional fully-qualified path of the module. Note: Matching is case-insensitive.
* \param DllHandle Receives the module handle on success.
* \return NTSTATUS Successful or errant status.
* \remarks At least one of BaseDllName or FullDllName must be supplied. If both are supplied, they must refer to the same module.
*/
NTSYSAPI
NTSTATUS
NTAPI
LdrGetDllHandleByName(
_In_opt_ PCUNICODE_STRING BaseDllName,
_In_opt_ PCUNICODE_STRING FullDllName,
_Out_ PVOID *DllHandle
);
View code on GitHubNo description available.