Go to the source code of this file.
◆ DllMain()
Definition at line 124 of file wuauserv.c.
127{
128 switch (fdwReason)
129 {
132 break;
133
135 break;
136 }
137
139}
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
◆ ServiceControlHandler()
Definition at line 49 of file wuauserv.c.
53{
54 switch (dwControl)
55 {
57 DPRINT1(
"WU ServiceControlHandler() SERVICE_CONTROL_STOP received\n");
61
63 DPRINT1(
"WU ServiceControlHandler() SERVICE_CONTROL_PAUSE received\n");
66
68 DPRINT1(
"WU ServiceControlHandler() SERVICE_CONTROL_CONTINUE received\n");
71
73 DPRINT1(
"WU ServiceControlHandler() SERVICE_CONTROL_INTERROGATE received\n");
77
79 DPRINT1(
"WU ServiceControlHandler() SERVICE_CONTROL_SHUTDOWN received\n");
83
84 default :
85 DPRINT1(
"WU ServiceControlHandler() Control %lu received\n", dwControl);
87 }
88}
#define ERROR_CALL_NOT_IMPLEMENTED
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
#define SERVICE_STOP_PENDING
#define SERVICE_CONTROL_SHUTDOWN
#define SERVICE_CONTROL_CONTINUE
#define SERVICE_CONTROL_STOP
#define SERVICE_CONTROL_PAUSE
#define SERVICE_CONTROL_INTERROGATE
static VOID UpdateServiceStatus(DWORD dwState)
static SERVICE_STATUS_HANDLE ServiceStatusHandle
static SERVICE_STATUS ServiceStatus
Referenced by ServiceMain().
◆ ServiceMain()
Definition at line 91 of file wuauserv.c.
92{
95
96 DPRINT(
"WU ServiceMain() called\n");
97
102 {
104 return;
105 }
106
109 {
111 goto done;
112 }
113
115
118
119done:
121}
#define UNREFERENCED_PARAMETER(P)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
DWORD WINAPI GetLastError(void)
static WCHAR ServiceName[]
static DWORD WINAPI ServiceControlHandler(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext)
◆ UpdateServiceStatus()
static VOID UpdateServiceStatus |
( |
DWORD |
dwState | ) |
|
|
static |
Definition at line 23 of file wuauserv.c.
24{
31
37 else
39
42
45 DPRINT1(
"WU UpdateServiceStatus() called\n");
46}
DWORD dwServiceSpecificExitCode
#define SERVICE_ACCEPT_STOP
#define SERVICE_START_PENDING
#define SERVICE_ACCEPT_SHUTDOWN
#define SERVICE_PAUSE_PENDING
#define SERVICE_CONTINUE_PENDING
#define SERVICE_WIN32_OWN_PROCESS
Referenced by ServiceControlHandler(), and ServiceMain().
◆ hStopEvent
◆ ServiceName
WCHAR ServiceName[] = L"wuauserv" |
|
static |
◆ ServiceStatus
◆ ServiceStatusHandle