61 TRACE(
"ServiceControlHandler()\n");
66 TRACE(
" SERVICE_CONTROL_STOP received\n");
73 TRACE(
" SERVICE_CONTROL_PAUSE received\n");
78 TRACE(
" SERVICE_CONTROL_CONTINUE received\n");
83 TRACE(
" SERVICE_CONTROL_INTERROGATE received\n");
89 TRACE(
" SERVICE_CONTROL_SHUTDOWN received\n");
94 TRACE(
" Control %lu received\n", dwControl);
115 ERR(
"Can't create PortThread\n");
135 TRACE(
"NlNetlogonMain(%d %p)\n", ArgCount, ArgVector);
142 ERR(
"RegisterServiceCtrlHandlerExW() failed! (Error %lu)\n",
GetLastError());
151 ERR(
"Service stopped (dwError: %lu\n", dwError);
static SERVICE_STATUS_HANDLE(WINAPI *pRegisterServiceCtrlHandlerExA)(LPCSTR
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
static WCHAR ServiceName[]
static DWORD ServiceInit(VOID)
static DWORD WINAPI ServiceControlHandler(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext)
static VOID UpdateServiceStatus(DWORD dwState)
static SERVICE_STATUS_HANDLE ServiceStatusHandle
BOOL WINAPI DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ PVOID pvReserved)
static SERVICE_STATUS ServiceStatus
VOID WINAPI NlNetlogonMain(_In_ INT ArgCount, _In_ PWSTR *ArgVector)
#define ERROR_CALL_NOT_IMPLEMENTED
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
static LPCSTR DWORD void * pvReserved
#define UNREFERENCED_PARAMETER(P)
RPC_STATUS WINAPI RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
DWORD dwServiceSpecificExitCode
DWORD WINAPI GetLastError(void)
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
#define SERVICE_STOP_PENDING
#define SERVICE_CONTROL_SHUTDOWN
#define SERVICE_START_PENDING
#define SERVICE_CONTROL_CONTINUE
#define SERVICE_CONTROL_STOP
#define SERVICE_PAUSE_PENDING
#define SERVICE_CONTROL_PAUSE
#define SERVICE_CONTROL_INTERROGATE
#define SERVICE_CONTINUE_PENDING
#define SERVICE_WIN32_OWN_PROCESS