Go to the source code of this file.
◆ ShutDown_Disconnect()
◆ ShutDown_EjectComputer()
◆ ShutDown_Hibernate()
Definition at line 88 of file shutdown.c.
98 #ifdef NT_INITIATE_POWERACTION_IMPLEMENTED
DWORD WINAPI GetLastError(VOID)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSTATUS NTAPI NtInitiatePowerAction(IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags, IN BOOLEAN Asynchronous)
NTSTATUS NTAPI NtSetSystemPowerState(IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags)
#define NT_SUCCESS(StatCode)
VOID ShowWin32Error(IN DWORD dwError)
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
Referenced by TaskManagerWndProc().
◆ ShutDown_LockComputer()
Definition at line 182 of file shutdown.c.
DWORD WINAPI GetLastError(VOID)
EXTINLINE BOOL WINAPI LockWorkStation(VOID)
VOID ShowWin32Error(IN DWORD dwError)
Referenced by TaskManagerWndProc().
◆ ShutDown_LogOffUser()
Definition at line 170 of file shutdown.c.
DWORD WINAPI GetLastError(VOID)
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
VOID ShowWin32Error(IN DWORD dwError)
Referenced by TaskManagerWndProc().
◆ ShutDown_PowerOff()
Definition at line 115 of file shutdown.c.
DWORD WINAPI GetLastError(VOID)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
SHORT WINAPI GetKeyState(_In_ int)
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI NtShutdownSystem(IN SHUTDOWN_ACTION Action)
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
VOID ShowWin32Error(IN DWORD dwError)
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
Referenced by TaskManagerWndProc().
◆ ShutDown_Reboot()
Definition at line 143 of file shutdown.c.
DWORD WINAPI GetLastError(VOID)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
SHORT WINAPI GetKeyState(_In_ int)
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI NtShutdownSystem(IN SHUTDOWN_ACTION Action)
BOOL WINAPI ExitWindowsEx(_In_ UINT, _In_ DWORD)
VOID ShowWin32Error(IN DWORD dwError)
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
Referenced by TaskManagerWndProc().
◆ ShutDown_StandBy()
Definition at line 61 of file shutdown.c.
71 #ifdef NT_INITIATE_POWERACTION_IMPLEMENTED
DWORD WINAPI GetLastError(VOID)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSTATUS NTAPI NtInitiatePowerAction(IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags, IN BOOLEAN Asynchronous)
NTSTATUS NTAPI NtSetSystemPowerState(IN POWER_ACTION SystemAction, IN SYSTEM_POWER_STATE MinSystemState, IN ULONG Flags)
#define NT_SUCCESS(StatCode)
VOID ShowWin32Error(IN DWORD dwError)
static BOOL EnablePrivilege(LPCWSTR lpszPrivilegeName, BOOL bEnablePrivilege)
Referenced by TaskManagerWndProc().
◆ ShutDown_SwitchUser()