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