1 write to _handle
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogConfiguration.cs (1)
59
_handle
= NativeWrapper.EvtOpenChannelConfig(_session.Handle, LogName, 0);
34 references to _handle
System.Diagnostics.EventLog (34)
System\Diagnostics\Reader\EventLogConfiguration.cs (34)
68
return (EventLogType)((uint)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigType)!);
76
return (EventLogIsolation)((uint)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigIsolation)!);
84
return (bool)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled)!;
88
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled, (object)value);
96
return (bool)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigClassicEventlog)!;
104
var descriptor = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess);
110
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess, (object?)value);
118
var logFilePath = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath);
124
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath, (object?)value);
132
return (long)((ulong)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize)!);
136
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize, (object)value);
144
object? nativeRetentionObject = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention);
145
object? nativeAutoBackupObject = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup);
163
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
164
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)false);
167
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)true);
168
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
171
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
172
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
182
var owningProviderName = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigOwningPublisher);
192
var providerNames = NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublisherList);
202
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel));
206
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel, (object?)value);
214
return (long?)((ulong?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords));
218
NativeWrapper.EvtSetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords, (object?)value);
226
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigBufferSize));
234
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMinBuffers));
242
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMaxBuffers));
250
return (int?)((uint?)NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLatency));
258
return (Guid?)(NativeWrapper.EvtGetChannelConfigProperty(
_handle
, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigControlGuid));
264
NativeWrapper.EvtSaveChannelConfig(
_handle
, 0);
275
if (
_handle
!= null && !
_handle
.IsInvalid)
276
_handle
.Dispose();