42 static unsigned short irot_protseq[] = IROT_PROTSEQ;
43 static unsigned short irot_endpoint[] = IROT_ENDPOINT;
44 static unsigned short epm_protseq[] = {
'n',
'c',
'a',
'c',
'n',
'_',
'n',
'p',0};
45 static unsigned short epm_endpoint[] = {
'\\',
'p',
'i',
'p',
'e',
'\\',
'e',
'p',
'm',
'a',
'p',
'p',
'e',
'r',0};
46 static unsigned short epm_protseq_lrpc[] = {
'n',
'c',
'a',
'l',
'r',
'p',
'c',0};
47 static unsigned short epm_endpoint_lrpc[] = {
'e',
'p',
'm',
'a',
'p',
'p',
'e',
'r',0};
68 epm_endpoint_lrpc,
NULL);
95 status.dwControlsAccepted = 0;
99 status.dwWin32ExitCode = 0;
100 status.dwServiceSpecificExitCode = 0;
108 TRACE(
"shutting down\n" );
113 status.dwControlsAccepted = 0;
133 TRACE(
"starting service\n" );
145 status.dwControlsAccepted = 0;
149 status.dwWin32ExitCode = 0;
150 status.dwServiceSpecificExitCode = 0;
155 status.dwWaitHint = 10000;
166 status.dwControlsAccepted = 0;
168 TRACE(
"service stopped\n" );
static SERVICE_STATUS_HANDLE(WINAPI *pRegisterServiceCtrlHandlerExA)(LPCSTR
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
VOID DoRpcSsSetupConfiguration(VOID)
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
RPC_STATUS WINAPI RpcServerUnregisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, UINT WaitForCallsToComplete)
RPC_STATUS WINAPI RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding)
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
#define RPC_C_PROTSEQ_MAX_REQS_DEFAULT
static DWORD WINAPI service_handler(DWORD ctrl, DWORD event_type, LPVOID event_data, LPVOID context)
static void WINAPI ServiceMain(DWORD argc, LPWSTR *argv)
static SERVICE_STATUS_HANDLE service_handle
static BOOL RPCSS_Initialize(void)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
BOOL WINAPI StartServiceCtrlDispatcherW(const SERVICE_TABLE_ENTRYW *lpServiceStartTable)
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
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)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
#define SERVICE_ACCEPT_STOP
#define SERVICE_STOP_PENDING
#define SERVICE_CONTROL_SHUTDOWN
#define SERVICE_CONTROL_STOP
#define SERVICE_ACCEPT_SHUTDOWN