#include "winsrv.h"
#include <debug.h>
Go to the source code of this file.
◆ DEFAULT_AUTO_END_TASKS
◆ DEFAULT_HUNG_APP_TIMEOUT
#define DEFAULT_HUNG_APP_TIMEOUT 5000 |
◆ DEFAULT_PROCESS_TERMINATE_TIMEOUT
#define DEFAULT_PROCESS_TERMINATE_TIMEOUT 90000 |
◆ DEFAULT_WAIT_TO_KILL_APP_TIMEOUT
#define DEFAULT_WAIT_TO_KILL_APP_TIMEOUT 20000 |
◆ NDEBUG
◆ DllMain()
@DllMain
Core routine of the Utility Manager's library.
- Parameters
-
[in] | hDllInstance | The entry point instance of the library. |
[in] | fdwReason | The reason argument to indicate the motive DllMain is being called. |
[in] | lpvReserved | Reserved. |
- Returns
- Returns TRUE when main call initialization has succeeded, FALSE otherwise.
Definition at line 172 of file init.c.
175{
179
181}
#define UNREFERENCED_PARAMETER(P)
◆ GetRegIntFromID()
Definition at line 36 of file init.c.
39{
46
47
50 &ValueString,
52 PartialInfo,
56 {
58 {
59
62 }
64 {
65
68 }
69 else
70 {
73 }
74 }
75
77 {
78
80 }
81
82
84}
#define NT_SUCCESS(StatCode)
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING _Out_ PNDIS_HANDLE KeyHandle
@ KeyValuePartialInformation
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI NTSTATUS NTAPI NtQueryValueKey(IN HANDLE KeyHandle, IN PUNICODE_STRING ValueName, IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, IN PVOID KeyValueInformation, IN ULONG Length, IN PULONG ResultLength)
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToInteger(PUNICODE_STRING String, ULONG Base, PULONG Value)
struct _KEY_VALUE_PARTIAL_INFORMATION KEY_VALUE_PARTIAL_INFORMATION
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Referenced by GetTimeouts().
◆ GetTimeouts()
Definition at line 87 of file init.c.
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 OBJ_CASE_INSENSITIVE
#define InitializeObjectAttributes(p, n, a, r, s)
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)
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
Referenced by CSR_API().
◆ ShutdownSettings