#ifndef _NTLDR_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
NTSYSAPI
NTSTATUS
NTAPI
LdrLoadDll(
_In_opt_ PCWSTR DllPath,
_In_opt_ PULONG DllCharacteristics,
_In_ PUNICODE_STRING DllName,
_Out_ PVOID *DllHandle
);
View code on GitHub
See WINAPI LoadLibraryEx
for possible flags.
Address of MZ header in virtual memory of caller's process.