Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 646 of file sctrl.c.
{ ANSI_STRING ServiceNameA; UNICODE_STRING ServiceNameU; SERVICE_STATUS_HANDLE SHandle; RtlInitAnsiString(&ServiceNameA, (LPSTR)lpServiceName); if (!NT_SUCCESS(RtlAnsiStringToUnicodeString(&ServiceNameU, &ServiceNameA, TRUE))) { SetLastError(ERROR_OUTOFMEMORY); return (SERVICE_STATUS_HANDLE)0; } SHandle = RegisterServiceCtrlHandlerExW(ServiceNameU.Buffer, lpHandlerProc, lpContext); RtlFreeUnicodeString(&ServiceNameU); return SHandle; }