NtLoadDriver - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
NtLoadDriver(
    _In_ PUNICODE_STRING DriverServiceName
    );

#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwLoadDriver(
    _In_ PUNICODE_STRING DriverServiceName
    );

#endif

View code on GitHub

This function is documented in Windows Driver Kit.


DriverServiceName

Registry path in system format. Path must begin with "\registry\machine\SYSTEM\CurrentControlSet\Services\..." where "..." is driver symbolic name.
Key must have at least 2 values:

Requirements

Privilege: SeLoadDriverPrivilege

See also