25 references to Advapi32
System.Diagnostics.EventLog (25)
System\Diagnostics\EventLog.cs (1)
653SafeEventLogReadHandle handle = Interop.Advapi32.OpenEventLog(machineName, logNames[i]);
System\Diagnostics\EventLogEntry.cs (1)
286if (Interop.Advapi32.LookupAccountSid(MachineName, sid, bufUserName, ref userNameLen, bufDomainName, ref domainNameLen, out int sidNameUse) != 0)
System\Diagnostics\EventLogInternal.cs (21)
139bool success = Interop.Advapi32.GetNumberOfEventLogRecords(readHandle, out count); 355bool success = Interop.Advapi32.GetOldestEventLogRecord(readHandle, out num); 426bool success = Interop.Advapi32.NotifyChangeEventLog(info.handleOwner.ReadHandle, info.waitHandle.SafeWaitHandle); 464bool success = Interop.Advapi32.ClearEventLog(readHandle, null); 727bool success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 744success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 891flags = Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ; 896flags = Interop.Advapi32.BACKWARDS_READ | Interop.Advapi32.SEEK_READ; 903bool success = Interop.Advapi32.ReadEventLog(readHandle, flags, index, 924success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, index, 1074SafeEventLogReadHandle handle = Interop.Advapi32.OpenEventLog(currentMachineName, logname); 1099SafeEventLogWriteHandle handle = Interop.Advapi32.RegisterEventSource(currentMachineName, sourceName); 1392bool success = Interop.Advapi32.ReportEvent(writeHandle, (short)type, category, eventID,
System\Diagnostics\SafeEventLogReadHandle.cs (1)
12return Interop.Advapi32.CloseEventLog(handle);
System\Diagnostics\SafeEventLogWriteHandle.cs (1)
13return Interop.Advapi32.DeregisterEventSource(handle);