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\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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)
15
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
18
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
19
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)
75
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
76
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __resultSet_native__marshaller = new();
114
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)
123
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
126
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
127
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
129
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
181
internal static partial bool EvtNext(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
queryHandle, int eventSize, nint[] events, int timeout, int flags, ref int returned)
190
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
228
internal static partial bool EvtCancel(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
handle)
237
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __handle_native__marshaller = new();
297
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)
307
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
344
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)
353
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
390
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)
397
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
400
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
401
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
447
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)
457
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
494
internal static partial bool EvtGetObjectArraySize(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
objectArray, out int objectArraySize)
504
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
541
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)
551
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
588
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenEventMetadataEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadata, int flags)
595
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
598
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
599
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadata_native__marshaller = new();
642
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtNextEventMetadata(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventMetadataEnum, int flags)
649
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
652
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
653
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadataEnum_native__marshaller = new();
696
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)
706
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadata_native__marshaller = new();
743
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
750
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
753
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
754
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
797
internal static partial bool EvtNextChannelPath(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelEnum, int channelPathBufferSize, char[] channelPathBuffer, out int channelPathBufferUsed)
807
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelEnum_native__marshaller = new();
845
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenPublisherEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
852
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
855
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
856
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
899
internal static partial bool EvtNextPublisherId(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherEnum, int publisherIdBufferSize, char[] publisherIdBuffer, out int publisherIdBufferUsed)
909
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherEnum_native__marshaller = new();
947
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, int flags)
954
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
957
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
958
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1003
internal static partial bool EvtSaveChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelConfig, int flags)
1012
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1047
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)
1056
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1093
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)
1103
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1140
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)
1147
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1150
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1151
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1196
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)
1206
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __log_native__marshaller = new();
1243
internal static partial bool EvtExportLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string query, string targetFilePath, int flags)
1252
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1291
internal static partial bool EvtArchiveExportedLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string logFilePath, int locale, int flags)
1300
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1337
internal static partial bool EvtClearLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string targetFilePath, int flags)
1346
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1384
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateRenderContext(int valuePathsCount, string[] valuePaths, global::Microsoft.Win32.UnsafeNativeMethods.EvtRenderContextFlags flags)
1391
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1394
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1460
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)
1472
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1473
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1515
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)
1527
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1528
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1569
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)
1584
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1585
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1651
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)
1662
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1663
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1703
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)
1710
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1713
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1759
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateBookmark(string bookmarkXml)
1765
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1768
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1807
internal static partial bool EvtUpdateBookmark(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
bookmark, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle)
1817
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1818
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);