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