Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 945 of file eventlog.c.
{ ANSI_STRING SourceName; IELF_HANDLE LogHandle; NTSTATUS Status; TRACE("%s, %s\n", lpUNCServerName, lpSourceName); RtlInitAnsiString(&SourceName, lpSourceName); RpcTryExcept { Status = ElfrRegisterEventSourceA((LPSTR)lpUNCServerName, (PRPC_STRING)&SourceName, &EmptyStringA, 1, 1, &LogHandle); } RpcExcept(EXCEPTION_EXECUTE_HANDLER) { Status = I_RpcMapWin32Status(RpcExceptionCode()); } RpcEndExcept; if (!NT_SUCCESS(Status)) { SetLastError(RtlNtStatusToDosError(Status)); return NULL; } return (HANDLE)LogHandle; }