82 ERR(
"ServiceInit()\n");
95 ERR(
"LsaRegisterLogonProcess() failed! (Status 0x%08lx)\n",
Status);
104 ERR(
"LsaLookupAuthenticationPackage() failed! (Status 0x%08lx)\n",
Status);
117 ERR(
"Can't create PortThread\n");
139 ERR(
"ServiceShutdown()\n");
144 ERR(
"LsaDeRegisterLogonProcess() failed! (Status 0x%08lx)\n",
Status);
156 TRACE(
"ServiceControlHandler() called\n");
161 TRACE(
" SERVICE_CONTROL_STOP received\n");
170 TRACE(
" SERVICE_CONTROL_PAUSE received\n");
175 TRACE(
" SERVICE_CONTROL_CONTINUE received\n");
180 TRACE(
" SERVICE_CONTROL_INTERROGATE received\n");
186 TRACE(
" SERVICE_CONTROL_SHUTDOWN received\n");
195 TRACE(
" Control %lu received\n", dwControl);
209 TRACE(
"ServiceMain() called\n");
216 ERR(
"RegisterServiceCtrlHandlerExW() failed! (Error %lu)\n",
GetLastError());
225 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)
VOID InitWorkstationInfo(VOID)
#define NT_SUCCESS(StatCode)
#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)
BOOL WINAPI GetVersionExW(IN LPOSVERSIONINFOW lpVersionInformation)
#define SV_TYPE_WORKSTATION
static IN DWORD IN LPVOID lpvReserved
#define UNREFERENCED_PARAMETER(P)
NTSTATUS NTAPI LsaLookupAuthenticationPackage(HANDLE, PLSA_STRING, PULONG)
#define MSV1_0_PACKAGE_NAME
ULONG LSA_OPERATIONAL_MODE
NTSTATUS NTAPI LsaDeregisterLogonProcess(HANDLE)
NTSTATUS NTAPI LsaRegisterLogonProcess(PLSA_STRING, PHANDLE, PLSA_OPERATIONAL_MODE)
RPC_STATUS WINAPI RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding)
BOOL WINAPI SetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus, DWORD dwServiceBits, BOOL bSetBitsOn, BOOL bUpdateImmediately)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
ULONG dwOSVersionInfoSize
DWORD dwServiceSpecificExitCode
#define RTL_CONSTANT_STRING(s)
DWORD WINAPI GetLastError(void)
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
#define SERVICE_ACCEPT_STOP
#define SERVICE_STOP_PENDING
#define SERVICE_CONTROL_SHUTDOWN
#define SERVICE_START_PENDING
#define SERVICE_CONTROL_CONTINUE
#define SERVICE_CONTROL_STOP
#define SERVICE_ACCEPT_SHUTDOWN
#define SERVICE_PAUSE_PENDING
#define SERVICE_CONTROL_PAUSE
#define SERVICE_CONTROL_INTERROGATE
#define SERVICE_CONTINUE_PENDING
static WCHAR ServiceName[]
static VOID ServiceShutdown(VOID)
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
static DWORD ServiceInit(VOID)
OSVERSIONINFOW VersionInfo
static DWORD WINAPI ServiceControlHandler(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext)
static VOID UpdateServiceStatus(DWORD dwState)
static SERVICE_STATUS_HANDLE ServiceStatusHandle
VOID WINAPI ServiceMain(DWORD argc, LPTSTR *argv)
ULONG LsaAuthenticationPackage
static SERVICE_STATUS ServiceStatus
#define SERVICE_WIN32_SHARE_PROCESS