4 instantiations of EventLogHandle
System.Diagnostics.EventLog (4)
System\Diagnostics\Reader\EventLogHandle.cs (1)
46
return new
EventLogHandle
();
System\Diagnostics\Reader\EventLogReader.cs (1)
174
EventLogRecord eventInstance = new EventLogRecord(new
EventLogHandle
(_eventsBuffer[_currentIndex], true), _eventQuery.Session, _cachedMetadataInformation);
System\Diagnostics\Reader\EventLogWatcher.cs (1)
278
EventLogRecord record = new EventLogRecord(new
EventLogHandle
(_eventsBuffer[i], true), _eventQuery.Session, cachedMetadataInformation);
System\Diagnostics\Reader\NativeWrapper.cs (1)
1277
return new
EventLogHandle
(val.Handle, true);
285 references to EventLogHandle
System.Diagnostics.EventLog (285)
_generated\0\LibraryImports.g.cs (114)
8
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtQuery(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string path, string query, int flags)
13
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
16
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
17
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
65
internal static partial bool EvtSeek(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
resultSet, long position, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
bookmark, int timeout, global::Microsoft.Win32.UnsafeNativeMethods.EvtSeekFlags flags)
73
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
74
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __resultSet_native__marshaller = new();
113
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtSubscribe(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, global::Microsoft.Win32.SafeHandles.SafeWaitHandle signalEvent, string path, string query, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
bookmark, nint context, nint callback, int flags)
120
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
123
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
124
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
126
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
180
internal static partial bool EvtNext(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
queryHandle, int eventSize, nint[] events, int timeout, int flags, ref int returned)
187
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
226
internal static partial bool EvtCancel(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
handle)
233
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __handle_native__marshaller = new();
292
internal static partial bool EvtGetEventInfo(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle, global::Microsoft.Win32.UnsafeNativeMethods.EvtEventPropertyId propertyId, int bufferSize, nint bufferPtr, out int bufferUsed)
300
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
338
internal static partial bool EvtGetQueryInfo(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
queryHandle, global::Microsoft.Win32.UnsafeNativeMethods.EvtQueryPropertyId propertyId, int bufferSize, nint buffer, ref int bufferRequired)
345
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
383
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenPublisherMetadata(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string publisherId, string logFilePath, int locale, int flags)
388
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
391
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
392
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
440
internal static partial bool EvtGetPublisherMetadataProperty(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadataHandle, global::Microsoft.Win32.UnsafeNativeMethods.EvtPublisherMetadataPropertyId propertyId, int flags, int publisherMetadataPropertyBufferSize, nint publisherMetadataPropertyBuffer, out int publisherMetadataPropertyBufferUsed)
448
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
486
internal static partial bool EvtGetObjectArraySize(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
objectArray, out int objectArraySize)
494
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
532
internal static partial bool EvtGetObjectArrayProperty(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
objectArray, int propertyId, int arrayIndex, int flags, int propertyValueBufferSize, nint propertyValueBuffer, out int propertyValueBufferUsed)
540
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
578
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenEventMetadataEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadata, int flags)
583
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
586
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
587
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadata_native__marshaller = new();
632
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtNextEventMetadata(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventMetadataEnum, int flags)
637
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
640
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
641
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadataEnum_native__marshaller = new();
686
internal static partial bool EvtGetEventMetadataProperty(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventMetadata, global::Microsoft.Win32.UnsafeNativeMethods.EvtEventMetadataPropertyId propertyId, int flags, int eventMetadataPropertyBufferSize, nint eventMetadataPropertyBuffer, out int eventMetadataPropertyBufferUsed)
694
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadata_native__marshaller = new();
732
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
737
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
740
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
741
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
786
internal static partial bool EvtNextChannelPath(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelEnum, int channelPathBufferSize, char[] channelPathBuffer, out int channelPathBufferUsed)
794
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelEnum_native__marshaller = new();
833
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenPublisherEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
838
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
841
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
842
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
887
internal static partial bool EvtNextPublisherId(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherEnum, int publisherIdBufferSize, char[] publisherIdBuffer, out int publisherIdBufferUsed)
895
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherEnum_native__marshaller = new();
934
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, int flags)
939
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
942
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
943
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
990
internal static partial bool EvtSaveChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelConfig, int flags)
997
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1033
internal static partial bool EvtSetChannelConfigProperty(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelConfig, global::Microsoft.Win32.UnsafeNativeMethods.EvtChannelConfigPropertyId propertyId, int flags, ref global::Microsoft.Win32.UnsafeNativeMethods.EvtVariant propertyValue)
1040
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1078
internal static partial bool EvtGetChannelConfigProperty(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelConfig, global::Microsoft.Win32.UnsafeNativeMethods.EvtChannelConfigPropertyId propertyId, int flags, int propertyValueBufferSize, nint propertyValueBuffer, out int propertyValueBufferUsed)
1086
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1124
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string path, global::System.Diagnostics.Eventing.Reader.PathType flags)
1129
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1132
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1133
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1180
internal static partial bool EvtGetLogInfo(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
log, global::Microsoft.Win32.UnsafeNativeMethods.EvtLogPropertyId propertyId, int propertyValueBufferSize, nint propertyValueBuffer, out int propertyValueBufferUsed)
1188
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __log_native__marshaller = new();
1226
internal static partial bool EvtExportLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string query, string targetFilePath, int flags)
1233
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1273
internal static partial bool EvtArchiveExportedLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string logFilePath, int locale, int flags)
1280
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1318
internal static partial bool EvtClearLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string targetFilePath, int flags)
1325
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1364
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateRenderContext(int valuePathsCount, string[] valuePaths, global::Microsoft.Win32.UnsafeNativeMethods.EvtRenderContextFlags flags)
1369
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1372
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1442
internal static partial bool EvtRender(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
context, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle, global::Microsoft.Win32.UnsafeNativeMethods.EvtRenderFlags flags, int buffSize, char[] buffer, out int buffUsed, out int propCount)
1452
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1453
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1496
internal static partial bool EvtRender(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
context, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle, global::Microsoft.Win32.UnsafeNativeMethods.EvtRenderFlags flags, int buffSize, nint buffer, out int buffUsed, out int propCount)
1506
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1507
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1549
internal static partial bool EvtFormatMessage(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadataHandle, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle, uint messageId, int valueCount, global::Microsoft.Win32.UnsafeNativeMethods.EvtStringVariant[] values, global::Microsoft.Win32.UnsafeNativeMethods.EvtFormatMessageFlags flags, int bufferSize, global::System.Span<char> buffer, out int bufferUsed)
1562
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1563
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1633
internal static partial bool EvtFormatMessageBuffer(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadataHandle, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle, uint messageId, int valueCount, nint values, global::Microsoft.Win32.UnsafeNativeMethods.EvtFormatMessageFlags flags, int bufferSize, nint buffer, out int bufferUsed)
1642
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1643
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1684
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenSession(global::Microsoft.Win32.UnsafeNativeMethods.EvtLoginClass loginClass, ref global::Microsoft.Win32.UnsafeNativeMethods.EvtRpcLogin login, int timeout, int flags)
1689
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1692
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1740
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateBookmark(string bookmarkXml)
1744
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1747
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1787
internal static partial bool EvtUpdateBookmark(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
bookmark, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle)
1795
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1796
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
System\Diagnostics\Reader\EventLogConfiguration.cs (2)
46
private readonly
EventLogHandle
_handle =
EventLogHandle
.Zero;
System\Diagnostics\Reader\EventLogHandle.cs (1)
42
public static
EventLogHandle
Zero
System\Diagnostics\Reader\EventLogInformation.cs (1)
16
EventLogHandle
logHandle = NativeWrapper.EvtOpenLog(session.Handle, channelName, pathType);
System\Diagnostics\Reader\EventLogPropertySelector.cs (1)
37
internal
EventLogHandle
Handle { get; }
System\Diagnostics\Reader\EventLogReader.cs (7)
23
private readonly
EventLogHandle
_handle;
102
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(bookmark);
225
NativeWrapper.EvtSeek(_handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToCurrent);
238
using (
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(bookmark))
251
NativeWrapper.EvtSeek(_handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToFirst);
257
NativeWrapper.EvtSeek(_handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToLast);
304
EventLogHandle
queryHandle = _handle;
System\Diagnostics\Reader\EventLogRecord.cs (7)
34
internal EventLogRecord(
EventLogHandle
handle, EventLogSession session, ProviderMetadataCachedInformation cachedMetadataInfo)
43
internal
EventLogHandle
Handle
260
using (
EventLogHandle
bookmarkHandle = NativeWrapper.EvtCreateBookmark(null))
391
return NativeWrapper.EvtRenderXml(
EventLogHandle
.Zero, Handle, renderBuffer);
407
internal static
EventLogHandle
GetBookmarkHandleFromBookmark(EventBookmark? bookmark)
410
return
EventLogHandle
.Zero;
411
EventLogHandle
handle = NativeWrapper.EvtCreateBookmark(bookmark.BookmarkXml);
System\Diagnostics\Reader\EventLogSession.cs (8)
44
internal
EventLogHandle
renderContextHandleSystem =
EventLogHandle
.Zero;
45
internal
EventLogHandle
renderContextHandleUser =
EventLogHandle
.Zero;
124
internal
EventLogHandle
Handle { get; } =
EventLogHandle
.Zero;
167
using (
EventLogHandle
ProviderEnum = NativeWrapper.EvtOpenProviderEnum(this.Handle, 0))
190
using (
EventLogHandle
channelEnum = NativeWrapper.EvtOpenChannelEnum(this.Handle, 0))
System\Diagnostics\Reader\EventLogWatcher.cs (2)
22
private
EventLogHandle
? _handle;
182
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(_bookmark);
System\Diagnostics\Reader\NativeWrapper.cs (73)
52
public static
EventLogHandle
EvtQuery(
53
EventLogHandle
session,
58
EventLogHandle
handle = UnsafeNativeMethods.EvtQuery(session, path, query, flags);
70
EventLogHandle
resultSet,
72
EventLogHandle
bookmark,
83
EventLogHandle
queryHandle,
97
public static void EvtCancel(
EventLogHandle
handle)
115
public static
EventLogHandle
EvtOpenProviderMetadata(
116
EventLogHandle
session,
124
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenPublisherMetadata(session, ProviderId, logFilePath, 0, flags);
136
public static int EvtGetObjectArraySize(
EventLogHandle
objectArray)
146
public static
EventLogHandle
EvtOpenEventMetadataEnum(
EventLogHandle
ProviderMetadata, int flags)
148
EventLogHandle
emEnumHandle = UnsafeNativeMethods.EvtOpenEventMetadataEnum(ProviderMetadata, flags);
160
public static
EventLogHandle
? EvtNextEventMetadata(
EventLogHandle
eventMetadataEnum, int flags)
162
EventLogHandle
emHandle = UnsafeNativeMethods.EvtNextEventMetadata(eventMetadataEnum, flags);
176
public static
EventLogHandle
EvtOpenChannelEnum(
EventLogHandle
session, int flags)
178
EventLogHandle
channelEnum = UnsafeNativeMethods.EvtOpenChannelEnum(session, flags);
189
public static
EventLogHandle
EvtOpenProviderEnum(
EventLogHandle
session, int flags)
191
EventLogHandle
pubEnum = UnsafeNativeMethods.EvtOpenPublisherEnum(session, flags);
202
public static
EventLogHandle
EvtOpenChannelConfig(
EventLogHandle
session, string channelPath, int flags)
204
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenChannelConfig(session, channelPath, flags);
215
public static void EvtSaveChannelConfig(
EventLogHandle
channelConfig, int flags)
223
public static
EventLogHandle
EvtOpenLog(
EventLogHandle
session, string path, PathType flags)
225
EventLogHandle
logHandle = UnsafeNativeMethods.EvtOpenLog(session, path, flags);
237
EventLogHandle
session,
251
EventLogHandle
session,
264
EventLogHandle
session,
276
public static
EventLogHandle
EvtCreateRenderContext(
281
EventLogHandle
renderContextHandleValues = UnsafeNativeMethods.EvtCreateRenderContext(valuePathsCount, valuePaths, flags);
293
EventLogHandle
context,
294
EventLogHandle
eventHandle,
323
public static
EventLogHandle
EvtOpenSession(UnsafeNativeMethods.EvtLoginClass loginClass, ref UnsafeNativeMethods.EvtRpcLogin login, int timeout, int flags)
325
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenSession(loginClass, ref login, timeout, flags);
332
public static
EventLogHandle
EvtCreateBookmark(string? bookmarkXml)
334
EventLogHandle
handle = UnsafeNativeMethods.EvtCreateBookmark(bookmarkXml);
345
public static void EvtUpdateBookmark(
EventLogHandle
bookmark,
EventLogHandle
eventHandle)
353
public static object? EvtGetEventInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtEventPropertyId enumType)
386
public static object? EvtGetQueryInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtQueryPropertyId enumType)
415
public static object? EvtGetPublisherMetadataProperty(
EventLogHandle
pmHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId thePropertyId)
445
internal static
EventLogHandle
EvtGetPublisherMetadataPropertyHandle(
EventLogHandle
pmHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId thePropertyId)
482
public static string? EvtFormatMessage(
EventLogHandle
handle, uint msgId)
486
bool status = UnsafeNativeMethods.EvtFormatMessage(handle,
EventLogHandle
.Zero, msgId, 0, null, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageId, 0, emptyBuffer, out bufferNeeded);
503
status = UnsafeNativeMethods.EvtFormatMessage(handle,
EventLogHandle
.Zero, msgId, 0, null, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageId, bufferNeeded, buffer, out bufferNeeded);
524
public static object? EvtGetObjectArrayProperty(
EventLogHandle
objArrayHandle, int index, int thePropertyId)
555
public static object? EvtGetEventMetadataProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtEventMetadataPropertyId enumType)
585
public static object? EvtGetChannelConfigProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtChannelConfigPropertyId enumType)
622
public static void EvtSetChannelConfigProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtChannelConfigPropertyId enumType, object? val)
699
public static string? EvtNextChannelPath(
EventLogHandle
handle, ref bool finish)
729
public static string? EvtNextPublisherId(
EventLogHandle
handle, ref bool finish)
760
public static object? EvtGetLogInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtLogPropertyId enumType)
790
public static void EvtRenderBufferWithContextSystem(
EventLogHandle
contextHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtRenderFlags flag, SystemProperties systemProperties)
890
public static IList<object?> EvtRenderBufferWithContextUserOrValues(
EventLogHandle
contextHandle,
EventLogHandle
eventHandle)
934
public static string? EvtFormatMessageRenderName(
EventLogHandle
pmHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags flag)
986
public static IEnumerable<string> EvtFormatMessageRenderKeywords(
EventLogHandle
pmHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags flag)
1041
public static string EvtRenderBookmark(
EventLogHandle
eventHandle)
1050
bool status = UnsafeNativeMethods.EvtRender(
EventLogHandle
.Zero, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount);
1059
status = UnsafeNativeMethods.EvtRender(
EventLogHandle
.Zero, eventHandle, flag, bufferNeeded, buffer, out bufferNeeded, out propCount);
1074
public static string? EvtFormatMessageFormatDescription(
EventLogHandle
handle,
EventLogHandle
eventHandle, string?[] values)
1272
public static
EventLogHandle
ConvertToSafeHandle(UnsafeNativeMethods.EvtVariant val)
1275
return
EventLogHandle
.Zero;
System\Diagnostics\Reader\ProviderMetadata.cs (12)
22
private readonly
EventLogHandle
_handle =
EventLogHandle
.Zero;
24
private
EventLogHandle
_defaultProviderHandle =
EventLogHandle
.Zero;
71
internal
EventLogHandle
Handle
152
EventLogHandle
elHandle =
EventLogHandle
.Zero;
279
internal object? GetProviderListProperty(
EventLogHandle
providerHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId metadataProperty)
281
EventLogHandle
elHandle =
EventLogHandle
.Zero;
488
EventLogHandle
emEnumHandle = NativeWrapper.EvtOpenEventMetadataEnum(_handle, 0);
494
EventLogHandle
? emHandle = NativeWrapper.EvtNextEventMetadata(emEnumHandle, 0);
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (6)
179
public string? GetFormatDescription(string ProviderName,
EventLogHandle
eventHandle)
197
public string? GetFormatDescription(string ProviderName,
EventLogHandle
eventHandle, string?[] values)
214
public string? GetLevelDisplayName(string ProviderName,
EventLogHandle
eventHandle)
224
public string? GetOpcodeDisplayName(string ProviderName,
EventLogHandle
eventHandle)
234
public string? GetTaskDisplayName(string ProviderName,
EventLogHandle
eventHandle)
244
public IEnumerable<string> GetKeywordDisplayNames(string ProviderName,
EventLogHandle
eventHandle)
System\Diagnostics\Reader\UnsafeNativeMethods.cs (51)
454
internal static partial
EventLogHandle
EvtQuery(
455
EventLogHandle
session,
464
EventLogHandle
resultSet,
466
EventLogHandle
bookmark,
471
internal static partial
EventLogHandle
EvtSubscribe(
472
EventLogHandle
session,
476
EventLogHandle
bookmark,
484
EventLogHandle
queryHandle,
493
internal static partial bool EvtCancel(
EventLogHandle
handle);
502
EventLogHandle
eventHandle,
511
EventLogHandle
queryHandle,
519
internal static partial
EventLogHandle
EvtOpenPublisherMetadata(
520
EventLogHandle
session,
529
EventLogHandle
publisherMetadataHandle,
541
EventLogHandle
objectArray,
547
EventLogHandle
objectArray,
557
internal static partial
EventLogHandle
EvtOpenEventMetadataEnum(
558
EventLogHandle
publisherMetadata,
562
internal static partial
EventLogHandle
EvtNextEventMetadata(
563
EventLogHandle
eventMetadataEnum,
569
EventLogHandle
eventMetadata,
579
internal static partial
EventLogHandle
EvtOpenChannelEnum(
580
EventLogHandle
session,
586
EventLogHandle
channelEnum,
592
internal static partial
EventLogHandle
EvtOpenPublisherEnum(
593
EventLogHandle
session,
599
EventLogHandle
publisherEnum,
605
internal static partial
EventLogHandle
EvtOpenChannelConfig(
606
EventLogHandle
session,
613
EventLogHandle
channelConfig,
619
EventLogHandle
channelConfig,
627
EventLogHandle
channelConfig,
637
internal static partial
EventLogHandle
EvtOpenLog(
638
EventLogHandle
session,
645
EventLogHandle
log,
656
EventLogHandle
session,
665
EventLogHandle
session,
673
EventLogHandle
session,
680
internal static partial
EventLogHandle
EvtCreateRenderContext(
689
EventLogHandle
context,
690
EventLogHandle
eventHandle,
700
EventLogHandle
context,
701
EventLogHandle
eventHandle,
768
EventLogHandle
publisherMetadataHandle,
769
EventLogHandle
eventHandle,
781
EventLogHandle
publisherMetadataHandle,
782
EventLogHandle
eventHandle,
793
internal static partial
EventLogHandle
EvtOpenSession(
801
internal static partial
EventLogHandle
EvtCreateBookmark(
807
EventLogHandle
bookmark,
808
EventLogHandle
eventHandle);