NtShutdownSystem - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

NTSYSCALLAPI
NTSTATUS
NTAPI
NtShutdownSystem(
    _In_ SHUTDOWN_ACTION Action
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwShutdownSystem(
    _In_ SHUTDOWN_ACTION Action
    );

#endif

View code on GitHub

Function NtShutdownSystem closes system. Caller should manually inform running processes about pending shutdown action.

Action

Type of shutdown defined in SHUTDOWN_ACTION enumeration type.

Documented by

Requirements

Privilege: SE_SHUTDOWN_PRIVILEGE

See also