4 instantiations of EventLogHandle
System.Core (4)
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (1)
57
return new
EventLogHandle
();
System\Diagnostics\Eventing\Reader\EventLogReader.cs (1)
189
EventLogRecord eventInstance = new EventLogRecord(new
EventLogHandle
(this.eventsBuffer[currentIndex], true), this.eventQuery.Session, this.cachedMetadataInformation);
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
262
EventLogRecord record = new EventLogRecord(new
EventLogHandle
(this.eventsBuffer[i], true), this.eventQuery.Session, this.cachedMetadataInformation);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
1301
return new
EventLogHandle
(val.Handle, true);
178 references to EventLogHandle
System.Core (178)
Microsoft\Win32\UnsafeNativeMethods.cs (51)
979
internal static extern
EventLogHandle
EvtQuery(
980
EventLogHandle
session,
990
EventLogHandle
resultSet,
992
EventLogHandle
bookmark,
999
internal static extern
EventLogHandle
EvtSubscribe(
1000
EventLogHandle
session,
1004
EventLogHandle
bookmark,
1013
EventLogHandle
queryHandle,
1023
internal static extern bool EvtCancel(
EventLogHandle
handle);
1042
EventLogHandle
eventHandle,
1054
EventLogHandle
queryHandle,
1064
internal static extern
EventLogHandle
EvtOpenPublisherMetadata(
1065
EventLogHandle
session,
1076
EventLogHandle
publisherMetadataHandle,
1090
EventLogHandle
objectArray,
1098
EventLogHandle
objectArray,
1110
internal static extern
EventLogHandle
EvtOpenEventMetadataEnum(
1111
EventLogHandle
publisherMetadata,
1118
internal static extern
EventLogHandle
EvtNextEventMetadata(
1119
EventLogHandle
eventMetadataEnum,
1127
EventLogHandle
eventMetadata,
1140
internal static extern
EventLogHandle
EvtOpenChannelEnum(
1141
EventLogHandle
session,
1149
EventLogHandle
channelEnum,
1159
internal static extern
EventLogHandle
EvtOpenPublisherEnum(
1160
EventLogHandle
session,
1168
EventLogHandle
publisherEnum,
1176
internal static extern
EventLogHandle
EvtOpenChannelConfig(
1177
EventLogHandle
session,
1186
EventLogHandle
channelConfig,
1195
EventLogHandle
channelConfig,
1206
EventLogHandle
channelConfig,
1218
internal static extern
EventLogHandle
EvtOpenLog(
1219
EventLogHandle
session,
1229
EventLogHandle
log,
1242
EventLogHandle
session,
1253
EventLogHandle
session,
1263
EventLogHandle
session,
1272
internal static extern
EventLogHandle
EvtCreateRenderContext(
1283
EventLogHandle
context,
1284
EventLogHandle
eventHandle,
1297
EventLogHandle
context,
1298
EventLogHandle
eventHandle,
1321
EventLogHandle
publisherMetadataHandle,
1322
EventLogHandle
eventHandle,
1336
EventLogHandle
publisherMetadataHandle,
1337
EventLogHandle
eventHandle,
1350
internal static extern
EventLogHandle
EvtOpenSession(
1360
internal static extern
EventLogHandle
EvtCreateBookmark(
1368
EventLogHandle
bookmark,
1369
EventLogHandle
eventHandle
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (2)
63
private
EventLogHandle
handle =
EventLogHandle
.Zero;
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (1)
55
public static
EventLogHandle
Zero {
System\Diagnostics\Eventing\Reader\EventLogInformation.cs (1)
44
EventLogHandle
logHandle = NativeWrapper.EvtOpenLog(session.Handle, channelName, pathType);
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (2)
36
private
EventLogHandle
renderContextHandleValues;
62
internal
EventLogHandle
Handle {
System\Diagnostics\Eventing\Reader\EventLogReader.cs (7)
39
private
EventLogHandle
handle;
119
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(bookmark);
244
NativeWrapper.EvtSeek(this.handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToCurrent);
259
using (
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(bookmark)) {
272
NativeWrapper.EvtSeek(this.handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToFirst);
278
NativeWrapper.EvtSeek(this.handle, offset,
EventLogHandle
.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToLast);
332
EventLogHandle
queryHandle = this.handle;
System\Diagnostics\Eventing\Reader\EventLogRecord.cs (8)
35
private
EventLogHandle
handle;
61
internal EventLogRecord(
EventLogHandle
handle, EventLogSession session, ProviderMetadataCachedInformation cachedMetadataInfo) {
69
internal
EventLogHandle
Handle {
255
EventLogHandle
bookmarkHandle = NativeWrapper.EvtCreateBookmark(null);
364
NativeWrapper.EvtRender(
EventLogHandle
.Zero, this.handle, UnsafeNativeMethods.EvtRenderFlags.EvtRenderEventXml, renderBuffer);
386
internal static
EventLogHandle
GetBookmarkHandleFromBookmark(EventBookmark bookmark) {
388
return
EventLogHandle
.Zero;
389
EventLogHandle
handle = NativeWrapper.EvtCreateBookmark(bookmark.BookmarkText);
System\Diagnostics\Eventing\Reader\EventLogSession.cs (9)
52
internal
EventLogHandle
renderContextHandleSystem =
EventLogHandle
.Zero;
53
internal
EventLogHandle
renderContextHandleUser =
EventLogHandle
.Zero;
68
private
EventLogHandle
handle =
EventLogHandle
.Zero;
147
internal
EventLogHandle
Handle {
196
using (
EventLogHandle
ProviderEnum = NativeWrapper.EvtOpenProviderEnum(this.Handle, 0))
218
using (
EventLogHandle
channelEnum = NativeWrapper.EvtOpenChannelEnum(this.Handle, 0))
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (2)
38
private
EventLogHandle
handle;
175
EventLogHandle
bookmarkHandle = EventLogRecord.GetBookmarkHandleFromBookmark(bookmark);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (77)
63
public static
EventLogHandle
EvtQuery(
64
EventLogHandle
session,
70
EventLogHandle
handle = UnsafeNativeMethods.EvtQuery(session, path, query, flags);
80
EventLogHandle
resultSet,
82
EventLogHandle
bookmark,
92
public static
EventLogHandle
EvtSubscribe(
93
EventLogHandle
session,
97
EventLogHandle
bookmark,
104
EventLogHandle
handle = UnsafeNativeMethods.EvtSubscribe(
123
EventLogHandle
queryHandle,
137
public static void EvtCancel(
EventLogHandle
handle) {
158
public static
EventLogHandle
EvtOpenProviderMetadata(
159
EventLogHandle
session,
173
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenPublisherMetadata(session, ProviderId, logFilePath, 0, flags);
182
public static int EvtGetObjectArraySize(
EventLogHandle
objectArray) {
192
public static
EventLogHandle
EvtOpenEventMetadataEnum(
EventLogHandle
ProviderMetadata, int flags) {
193
EventLogHandle
emEnumHandle = UnsafeNativeMethods.EvtOpenEventMetadataEnum(ProviderMetadata, flags);
202
public static
EventLogHandle
EvtNextEventMetadata(
EventLogHandle
eventMetadataEnum, int flags) {
203
EventLogHandle
emHandle = UnsafeNativeMethods.EvtNextEventMetadata(eventMetadataEnum, flags);
216
public static
EventLogHandle
EvtOpenChannelEnum(
EventLogHandle
session, int flags) {
220
EventLogHandle
channelEnum = UnsafeNativeMethods.EvtOpenChannelEnum(session, flags);
228
public static
EventLogHandle
EvtOpenProviderEnum(
EventLogHandle
session, int flags) {
232
EventLogHandle
pubEnum = UnsafeNativeMethods.EvtOpenPublisherEnum(session, flags);
240
public static
EventLogHandle
EvtOpenChannelConfig(
EventLogHandle
session, String channelPath, int flags) {
244
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenChannelConfig(session, channelPath, flags);
252
public static void EvtSaveChannelConfig(
EventLogHandle
channelConfig, int flags) {
262
public static
EventLogHandle
EvtOpenLog(
EventLogHandle
session, string path, PathType flags) {
266
EventLogHandle
logHandle = UnsafeNativeMethods.EvtOpenLog(session, path, flags);
275
EventLogHandle
session,
295
EventLogHandle
session,
314
EventLogHandle
session,
332
public static
EventLogHandle
EvtCreateRenderContext(
339
EventLogHandle
renderContextHandleValues = UnsafeNativeMethods.EvtCreateRenderContext(valuePathsCount, valuePaths, flags);
348
EventLogHandle
context,
349
EventLogHandle
eventHandle,
374
public static
EventLogHandle
EvtOpenSession(UnsafeNativeMethods.EvtLoginClass loginClass, ref UnsafeNativeMethods.EvtRpcLogin login, int timeout, int flags) {
378
EventLogHandle
handle = UnsafeNativeMethods.EvtOpenSession(loginClass, ref login, timeout, flags);
386
public static
EventLogHandle
EvtCreateBookmark(string bookmarkXml) {
390
EventLogHandle
handle = UnsafeNativeMethods.EvtCreateBookmark(bookmarkXml);
398
public static void EvtUpdateBookmark(
EventLogHandle
bookmark,
EventLogHandle
eventHandle) {
406
public static object EvtGetEventInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtEventPropertyId enumType) {
438
public static object EvtGetQueryInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtQueryPropertyId enumType) {
463
public static object EvtGetPublisherMetadataProperty(
EventLogHandle
pmHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId thePropertyId) {
492
internal static
EventLogHandle
EvtGetPublisherMetadataPropertyHandle(
EventLogHandle
pmHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId thePropertyId) {
526
public static string EvtFormatMessage(
EventLogHandle
handle, uint msgId) {
533
bool status = UnsafeNativeMethods.EvtFormatMessage(handle,
EventLogHandle
.Zero, msgId, 0, null, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageId, 0, sb, out bufferNeeded);
553
status = UnsafeNativeMethods.EvtFormatMessage(handle,
EventLogHandle
.Zero, msgId, 0, null, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageId, bufferNeeded, sb, out bufferNeeded);
576
public static object EvtGetObjectArrayProperty(
EventLogHandle
objArrayHandle, int index, int thePropertyId) {
603
public static object EvtGetEventMetadataProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtEventMetadataPropertyId enumType) {
630
public static object EvtGetChannelConfigProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtChannelConfigPropertyId enumType) {
667
public static void EvtSetChannelConfigProperty(
EventLogHandle
handle, UnsafeNativeMethods.EvtChannelConfigPropertyId enumType, object val) {
740
public static string EvtNextChannelPath(
EventLogHandle
handle, ref bool finish) {
766
public static string EvtNextPublisherId(
EventLogHandle
handle, ref bool finish) {
792
public static object EvtGetLogInfo(
EventLogHandle
handle, UnsafeNativeMethods.EvtLogPropertyId enumType) {
819
public static void EvtRenderBufferWithContextSystem(
EventLogHandle
contextHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtRenderFlags flag, SystemProperties systemProperties, int SYSTEM_PROPERTY_COUNT) {
916
public static IList<object> EvtRenderBufferWithContextUserOrValues(
EventLogHandle
contextHandle,
EventLogHandle
eventHandle) {
957
public static string EvtFormatMessageRenderName(
EventLogHandle
pmHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags flag) {
1008
public static IEnumerable<string> EvtFormatMessageRenderKeywords(
EventLogHandle
pmHandle,
EventLogHandle
eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags flag) {
1069
public static string EvtRenderBookmark(
EventLogHandle
eventHandle) {
1076
bool status = UnsafeNativeMethods.EvtRender(
EventLogHandle
.Zero, eventHandle, flag, 0, IntPtr.Zero, out bufferNeeded, out propCount);
1084
status = UnsafeNativeMethods.EvtRender(
EventLogHandle
.Zero, eventHandle, flag, bufferNeeded, buffer, out bufferNeeded, out propCount);
1100
public static string EvtFormatMessageFormatDescription(
EventLogHandle
handle,
EventLogHandle
eventHandle, string[] values) {
1297
public static
EventLogHandle
ConvertToSafeHandle(UnsafeNativeMethods.EvtVariant val) {
1299
return
EventLogHandle
.Zero;
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (12)
38
private
EventLogHandle
handle =
EventLogHandle
.Zero;
40
private
EventLogHandle
defaultProviderHandle =
EventLogHandle
.Zero;
93
internal
EventLogHandle
Handle {
162
EventLogHandle
elHandle =
EventLogHandle
.Zero;
285
internal object GetProviderListProperty(
EventLogHandle
providerHandle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId metadataProperty) {
286
EventLogHandle
elHandle =
EventLogHandle
.Zero;
495
EventLogHandle
emEnumHandle = NativeWrapper.EvtOpenEventMetadataEnum(handle, 0);
499
EventLogHandle
emHandle = emHandle = NativeWrapper.EvtNextEventMetadata(emEnumHandle, 0);
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (6)
202
public string GetFormatDescription(string ProviderName,
EventLogHandle
eventHandle) {
217
public string GetFormatDescription(string ProviderName,
EventLogHandle
eventHandle, string[] values) {
233
public string GetLevelDisplayName(string ProviderName,
EventLogHandle
eventHandle) {
243
public string GetOpcodeDisplayName(string ProviderName,
EventLogHandle
eventHandle) {
253
public string GetTaskDisplayName(string ProviderName,
EventLogHandle
eventHandle) {
263
public IEnumerable<string> GetKeywordDisplayNames(string ProviderName,
EventLogHandle
eventHandle) {