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); 729bool success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 746success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, 893flags = Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ; 898flags = Interop.Advapi32.BACKWARDS_READ | Interop.Advapi32.SEEK_READ; 905bool success = Interop.Advapi32.ReadEventLog(readHandle, flags, index, 926success = Interop.Advapi32.ReadEventLog(readHandle, Interop.Advapi32.FORWARDS_READ | Interop.Advapi32.SEEK_READ, index, 1076SafeEventLogReadHandle handle = Interop.Advapi32.OpenEventLog(currentMachineName, logname); 1101SafeEventLogWriteHandle handle = Interop.Advapi32.RegisterEventSource(currentMachineName, sourceName); 1394bool 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);