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)
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();
68
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)
78
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
79
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __resultSet_native__marshaller = new();
119
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)
128
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
131
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
132
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __bookmark_native__marshaller = new();
134
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
189
internal static partial bool EvtNext(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
queryHandle, int eventSize, nint[] events, int timeout, int flags, ref int returned)
198
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
238
internal static partial bool EvtCancel(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
handle)
247
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __handle_native__marshaller = new();
310
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)
320
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
359
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)
368
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __queryHandle_native__marshaller = new();
407
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)
414
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
417
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
418
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
467
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)
477
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
516
internal static partial bool EvtGetObjectArraySize(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
objectArray, out int objectArraySize)
526
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
565
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)
575
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __objectArray_native__marshaller = new();
614
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenEventMetadataEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherMetadata, int flags)
621
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
624
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
625
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadata_native__marshaller = new();
671
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtNextEventMetadata(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventMetadataEnum, int flags)
678
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
681
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
682
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadataEnum_native__marshaller = new();
728
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)
738
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventMetadata_native__marshaller = new();
777
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
784
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
787
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
788
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
834
internal static partial bool EvtNextChannelPath(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelEnum, int channelPathBufferSize, char[] channelPathBuffer, out int channelPathBufferUsed)
844
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelEnum_native__marshaller = new();
884
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenPublisherEnum(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, int flags)
891
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
894
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
895
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
941
internal static partial bool EvtNextPublisherId(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
publisherEnum, int publisherIdBufferSize, char[] publisherIdBuffer, out int publisherIdBufferUsed)
951
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherEnum_native__marshaller = new();
991
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtOpenChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, int flags)
998
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1001
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1002
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1050
internal static partial bool EvtSaveChannelConfig(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
channelConfig, int flags)
1059
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1096
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)
1105
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1144
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)
1154
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __channelConfig_native__marshaller = new();
1193
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)
1200
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1203
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1204
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1252
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)
1262
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __log_native__marshaller = new();
1301
internal static partial bool EvtExportLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string query, string targetFilePath, int flags)
1310
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1351
internal static partial bool EvtArchiveExportedLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string logFilePath, int locale, int flags)
1360
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1399
internal static partial bool EvtClearLog(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
session, string channelPath, string targetFilePath, int flags)
1408
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __session_native__marshaller = new();
1448
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateRenderContext(int valuePathsCount, string[] valuePaths, global::Microsoft.Win32.UnsafeNativeMethods.EvtRenderContextFlags flags)
1455
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1458
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1529
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)
1541
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1542
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1586
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)
1598
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1599
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __context_native__marshaller = new();
1642
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)
1657
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1658
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1729
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)
1740
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1741
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __publisherMetadataHandle_native__marshaller = new();
1783
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)
1790
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1793
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1842
internal static partial global::System.Diagnostics.Eventing.Reader.
EventLogHandle
EvtCreateBookmark(string bookmarkXml)
1848
global::System.Diagnostics.Eventing.Reader.
EventLogHandle
__retVal = default;
1851
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1892
internal static partial bool EvtUpdateBookmark(global::System.Diagnostics.Eventing.Reader.
EventLogHandle
bookmark, global::System.Diagnostics.Eventing.Reader.
EventLogHandle
eventHandle)
1902
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Diagnostics.Eventing.Reader.
EventLogHandle
>.ManagedToUnmanagedIn __eventHandle_native__marshaller = new();
1903
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);