#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtShutdownSystem routine initiates a system shutdown using the specified
* shutdown action.
*
* \param Action A SHUTDOWN_ACTION value that specifies whether the system
* should halt, reboot, power off, or reboot for recovery.
* \return NTSTATUS Successful or errant status.
* \remarks The calling process must have the SE_SHUTDOWN_NAME privilege.
*/
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtShutdownSystem(
_In_ SHUTDOWN_ACTION Action
);
View code on GitHub#ifndef _NTZWAPI_H
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwShutdownSystem(
_In_ SHUTDOWN_ACTION Action
);
View code on GitHubNo description available.
Function NtShutdownSystem closes system. Caller should manually inform running processes about pending shutdown action.
Type of shutdown defined in SHUTDOWN_ACTION enumeration type.
Privilege: SE_SHUTDOWN_PRIVILEGE