1 write to Handle
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogSession.cs (1)
116
Handle
= NativeWrapper.EvtOpenSession(UnsafeNativeMethods.EvtLoginClass.EvtRpcLogin, ref erLogin, 0, 0);
17 references to Handle
System.Diagnostics.EventLog (17)
System\Diagnostics\Reader\EventLogConfiguration.cs (1)
59
_handle = NativeWrapper.EvtOpenChannelConfig(_session.
Handle
, LogName, 0);
System\Diagnostics\Reader\EventLogInformation.cs (1)
16
EventLogHandle logHandle = NativeWrapper.EvtOpenLog(session.
Handle
, channelName, pathType);
System\Diagnostics\Reader\EventLogReader.cs (1)
98
_handle = NativeWrapper.EvtQuery(_eventQuery.Session.
Handle
,
System\Diagnostics\Reader\EventLogSession.cs (10)
148
if (
Handle
!= null && !
Handle
.IsInvalid)
149
Handle
.Dispose();
154
NativeWrapper.EvtCancel(
Handle
);
167
using (EventLogHandle ProviderEnum = NativeWrapper.EvtOpenProviderEnum(this.
Handle
, 0))
190
using (EventLogHandle channelEnum = NativeWrapper.EvtOpenChannelEnum(this.
Handle
, 0))
233
NativeWrapper.EvtExportLog(this.
Handle
, path, query, targetFilePath, (int)flag);
235
NativeWrapper.EvtExportLog(this.
Handle
, path, query, targetFilePath, (int)flag | (int)UnsafeNativeMethods.EvtExportLogFlags.EvtExportLogTolerateQueryErrors);
247
NativeWrapper.EvtArchiveExportedLog(this.
Handle
, targetFilePath, 0, 0);
259
NativeWrapper.EvtClearLog(this.
Handle
, logName, backupPath, 0);
System\Diagnostics\Reader\EventLogWatcher.cs (1)
187
_handle = UnsafeNativeMethods.EvtSubscribe(_eventQuery.Session.
Handle
,
System\Diagnostics\Reader\ProviderMetadata.cs (3)
66
_handle = NativeWrapper.EvtOpenProviderMetadata(_session.
Handle
, _providerName, _logFilePath, 0);
208
_defaultProviderHandle = NativeWrapper.EvtOpenProviderMetadata(_session.
Handle
, null, null, 0);
361
_defaultProviderHandle = NativeWrapper.EvtOpenProviderMetadata(_session.
Handle
, null, null, 0);