88{
92 HANDLE CurrentUserKeyHandle;
94
95
101
102
105 {
107 L"Control Panel\\Desktop");
109 &RegistryString,
111 CurrentUserKeyHandle,
115 {
116
121 L"WaitToKillAppTimeout",
126
128 }
129
130
132 }
133
134
136 L"\\Registry\\Machine\\System\\CurrentControlSet\\Control");
138 &RegistryString,
143 {
144
146 L"WaitToKillServiceTimeout",
148
149
150
151
152
153
154
155
156
158 L"ProcessTerminateTimeout",
162
163
165 }
166}
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
#define OBJ_CASE_INSENSITIVE
#define InitializeObjectAttributes(p, n, a, r, s)
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING _Out_ PNDIS_HANDLE KeyHandle
NTSYSAPI NTSTATUS NTAPI RtlOpenCurrentUser(_In_ ACCESS_MASK DesiredAccess, _Out_ PHANDLE KeyHandle)
NTSYSAPI NTSTATUS NTAPI NtOpenKey(OUT PHANDLE KeyHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define DEFAULT_PROCESS_TERMINATE_TIMEOUT
static ULONG GetRegIntFromID(IN HANDLE KeyHandle, IN PWCHAR ValueName, IN ULONG DefaultValue)
#define DEFAULT_WAIT_TO_KILL_APP_TIMEOUT
SHUTDOWN_SETTINGS ShutdownSettings
#define DEFAULT_HUNG_APP_TIMEOUT
#define DEFAULT_AUTO_END_TASKS