128 references to NativeWrapper
System.Core (128)
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (32)
83
handle =
NativeWrapper
.EvtOpenChannelConfig(this.session.Handle, this.channelName, 0);
94
return (EventLogType)((uint)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigType));
100
return (EventLogIsolation)((uint)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigIsolation));
106
return (bool)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled);
109
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigEnabled, (object)value);
115
return (bool)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigClassicEventlog);
121
return (string)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess);
124
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigAccess, (object)value);
130
return (string)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath);
133
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigLogFilePath, (object)value);
139
return (long)((ulong)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize));
142
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigMaxSize, (object)value);
148
object nativeRetentionObject =
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention);
149
object nativeAutoBackupObject =
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup);
166
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
167
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)false);
170
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)true);
171
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
174
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigAutoBackup, (object)false);
175
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelLoggingConfigRetention, (object)true);
183
return (string)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelConfigOwningPublisher);
189
return (string[])
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublisherList);
195
return (int?)((uint?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel));
198
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLevel, (object)value);
204
return (long?)((ulong?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords));
207
NativeWrapper
.EvtSetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigKeywords, (object)value);
213
return (int?)((uint?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigBufferSize));
219
return (int?)((uint?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMinBuffers));
225
return (int?)((uint?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigMaxBuffers));
231
return (int?)((uint?)
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigLatency));
237
return (Guid?)(
NativeWrapper
.EvtGetChannelConfigProperty(this.handle, UnsafeNativeMethods.EvtChannelConfigPropertyId.EvtChannelPublishingConfigControlGuid));
243
NativeWrapper
.EvtSaveChannelConfig(this.handle, 0);
System\Diagnostics\Eventing\Reader\EventLogHandle.cs (1)
48
NativeWrapper
.EvtClose(handle);
System\Diagnostics\Eventing\Reader\EventLogInformation.cs (9)
44
EventLogHandle logHandle =
NativeWrapper
.EvtOpenLog(session.Handle, channelName, pathType);
47
creationTime = (DateTime?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogCreationTime);
48
lastAccessTime = (DateTime?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogLastAccessTime);
49
lastWriteTime = (DateTime?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogLastWriteTime);
50
fileSize = (long?)((ulong?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogFileSize));
51
fileAttributes = (int?)((uint?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogAttributes));
52
recordCount = (long?)((ulong?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogNumberOfLogRecords));
53
oldestRecordNumber = (long?)((ulong?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogOldestRecordNumber));
54
isLogFull = (bool?)
NativeWrapper
.EvtGetLogInfo(logHandle, UnsafeNativeMethods.EvtLogPropertyId.EvtLogFull);
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (1)
59
renderContextHandleValues =
NativeWrapper
.EvtCreateRenderContext(paths.Length, paths, UnsafeNativeMethods.EvtRenderContextFlags.EvtRenderContextValues);
System\Diagnostics\Eventing\Reader\EventLogReader.cs (13)
115
handle =
NativeWrapper
.EvtQuery(this.eventQuery.Session.Handle,
123
NativeWrapper
.EvtSeek(handle, 1, bookmarkHandle, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToBookmark);
152
bool results =
NativeWrapper
.EvtNext(handle, batchSize, eventsBuffer, timeout, 0, ref newEventCount);
207
NativeWrapper
.EvtClose(eventsBuffer[this.currentIndex]);
221
NativeWrapper
.EvtClose(eventsBuffer[this.currentIndex]);
244
NativeWrapper
.EvtSeek(this.handle, offset, EventLogHandle.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToCurrent);
260
NativeWrapper
.EvtSeek(this.handle, offset, bookmarkHandle, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToBookmark);
272
NativeWrapper
.EvtSeek(this.handle, offset, EventLogHandle.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToFirst);
278
NativeWrapper
.EvtSeek(this.handle, offset, EventLogHandle.Zero, 0, UnsafeNativeMethods.EvtSeekFlags.EvtSeekRelativeToLast);
292
NativeWrapper
.EvtClose(eventsBuffer[index]);
321
NativeWrapper
.EvtCancel(handle);
337
channelNames = (string[])
NativeWrapper
.EvtGetQueryInfo(queryHandle, UnsafeNativeMethods.EvtQueryPropertyId.EvtQueryNames);
338
errorStatuses = (int[])
NativeWrapper
.EvtGetQueryInfo(queryHandle, UnsafeNativeMethods.EvtQueryPropertyId.EvtQueryStatuses);
System\Diagnostics\Eventing\Reader\EventLogRecord.cs (12)
39
private
NativeWrapper
.SystemProperties systemProperties;
65
systemProperties = new
NativeWrapper
.SystemProperties();
89
NativeWrapper
.EvtRenderBufferWithContextSystem(this.session.renderContextHandleSystem, this.handle, UnsafeNativeMethods.EvtRenderFlags.EvtRenderEventValues, this.systemProperties, SYSTEM_PROPERTY_COUNT);
229
this.containerChannel = (string)
NativeWrapper
.EvtGetEventInfo(this.Handle, UnsafeNativeMethods.EvtEventPropertyId.EvtEventPath);
242
this.matchedQueryIds = (int[])
NativeWrapper
.EvtGetEventInfo(this.Handle, UnsafeNativeMethods.EvtEventPropertyId.EvtEventQueryIDs);
255
EventLogHandle bookmarkHandle =
NativeWrapper
.EvtCreateBookmark(null);
256
NativeWrapper
.EvtUpdateBookmark(bookmarkHandle, this.handle);
257
string bookmarkText =
NativeWrapper
.EvtRenderBookmark(bookmarkHandle);
343
IList<object> properties =
NativeWrapper
.EvtRenderBufferWithContextUserOrValues(this.session.renderContextHandleUser, this.handle);
355
return
NativeWrapper
.EvtRenderBufferWithContextUserOrValues(propertySelector.Handle, this.handle);
364
NativeWrapper
.EvtRender(EventLogHandle.Zero, this.handle, UnsafeNativeMethods.EvtRenderFlags.EvtRenderEventXml, renderBuffer);
389
EventLogHandle handle =
NativeWrapper
.EvtCreateBookmark(bookmark.BookmarkText);
System\Diagnostics\Eventing\Reader\EventLogSession.cs (12)
82
this.renderContextHandleSystem =
NativeWrapper
.EvtCreateRenderContext(0, null, UnsafeNativeMethods.EvtRenderContextFlags.EvtRenderContextSystem);
94
this.renderContextHandleUser =
NativeWrapper
.EvtCreateRenderContext(0, null, UnsafeNativeMethods.EvtRenderContextFlags.EvtRenderContextUser);
139
handle =
NativeWrapper
.EvtOpenSession(UnsafeNativeMethods.EvtLoginClass.EvtRpcLogin, ref erLogin, 0, 0);
181
NativeWrapper
.EvtCancel(handle);
196
using (EventLogHandle ProviderEnum =
NativeWrapper
.EvtOpenProviderEnum(this.Handle, 0))
202
string s =
NativeWrapper
.EvtNextPublisherId(ProviderEnum, ref finish);
218
using (EventLogHandle channelEnum =
NativeWrapper
.EvtOpenChannelEnum(this.Handle, 0))
224
string s =
NativeWrapper
.EvtNextChannelPath(channelEnum, ref finish);
266
NativeWrapper
.EvtExportLog(this.Handle, path, query, targetFilePath, (int)flag);
268
NativeWrapper
.EvtExportLog(this.Handle, path, query, targetFilePath, (int)flag | (int)UnsafeNativeMethods.EvtExportLogFlags.EvtExportLogTolerateQueryErrors);
280
NativeWrapper
.EvtArchiveExportedLog(this.Handle, targetFilePath, targetCultureInfo.LCID, 0);
293
NativeWrapper
.EvtClearLog(this.Handle, logName, backupPath, 0);
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (4)
141
NativeWrapper
.EvtClose(eventsBuffer[i]);
179
handle =
NativeWrapper
.EvtSubscribe(this.eventQuery.Session.Handle,
228
results =
NativeWrapper
.EvtNext(this.handle, this.eventsBuffer.Length, this.eventsBuffer, 0, 0, ref this. numEventsInBuffer);
285
NativeWrapper
.EvtClose(eventsBuffer[i]);
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (38)
88
handle =
NativeWrapper
.EvtOpenProviderMetadata(this.session.Handle, this.providerName, this.logFilePath, this.cultureInfo.LCID, 0);
105
return (Guid)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataPublisherGuid);
111
return (string)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataMessageFilePath);
117
return (string)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataResourceFilePath);
123
return (string)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataParameterFilePath);
129
string helpLinkStr = (string)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataHelpLink);
138
return (uint)
NativeWrapper
.EvtGetPublisherMetadataProperty(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataPublisherMessageID);
154
return
NativeWrapper
.EvtFormatMessage(this.handle, msgId);
171
elHandle =
NativeWrapper
.EvtGetPublisherMetadataPropertyHandle(this.handle, UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataChannelReferences);
173
int arraySize =
NativeWrapper
.EvtGetObjectArraySize(elHandle);
180
string channelName = (string)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int) UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataChannelReferencePath);
182
uint channelId = (uint)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int) UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataChannelReferenceID);
184
uint flag = (uint)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int) UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataChannelReferenceFlags);
190
int channelRefMessageId = (int)((uint)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int) UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataChannelReferenceMessageID));
198
channelRefDisplayName =
NativeWrapper
.EvtFormatMessage(this.handle, (uint)channelRefMessageId);
215
this.defaultProviderHandle =
NativeWrapper
.EvtOpenProviderMetadata(this.session.Handle, null, null, this.cultureInfo.LCID, 0);
218
channelRefDisplayName =
NativeWrapper
.EvtFormatMessage(this.defaultProviderHandle, (uint)channelRefMessageId);
302
elHandle =
NativeWrapper
.EvtGetPublisherMetadataPropertyHandle(providerHandle, metadataProperty);
304
int arraySize =
NativeWrapper
.EvtGetObjectArraySize(elHandle);
344
string generalName = (string)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int)propName);
349
generalValue = (uint)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int)propValue);
352
generalValueKeyword = (long)((ulong)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int)propValue));
355
int generalMessageId = (int)((uint)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int)propMessageId));
364
this.defaultProviderHandle =
NativeWrapper
.EvtOpenProviderMetadata(this.session.Handle, null, null, this.cultureInfo.LCID, 0);
388
generalDisplayName =
NativeWrapper
.EvtFormatMessage(providerHandle, (uint)generalMessageId);
403
Guid taskGuid = (Guid)
NativeWrapper
.EvtGetObjectArrayProperty(elHandle, index, (int) UnsafeNativeMethods.EvtPublisherMetadataPropertyId.EvtPublisherMetadataTaskEventGuid);
495
EventLogHandle emEnumHandle =
NativeWrapper
.EvtOpenEventMetadataEnum(handle, 0);
499
EventLogHandle emHandle = emHandle =
NativeWrapper
.EvtNextEventMetadata(emEnumHandle, 0);
504
uint emId = (uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventID);
506
byte emVersion = (byte)((uint)(
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventVersion)));
508
byte emChannelId = (byte)((uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventChannel));
510
byte emLevel = (byte)((uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventLevel));
512
byte emOpcode = (byte)((uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventOpcode));
514
short emTask = (short)((uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventTask));
516
long emKeywords = (long)(ulong)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventKeyword);
518
string emTemplate = (string)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventTemplate);
520
int messageId = (int)((uint)
NativeWrapper
.EvtGetEventMetadataProperty(emHandle, UnsafeNativeMethods.EvtEventMetadataPropertyId.EventMetadataEventMessageID));
527
emMessage =
NativeWrapper
.EvtFormatMessage(this.handle, (uint)messageId);
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (6)
209
return
NativeWrapper
.EvtFormatMessageRenderName(pm.Handle, eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageEvent);
223
return
NativeWrapper
.EvtFormatMessageFormatDescription(pm.Handle, eventHandle, values);
237
return
NativeWrapper
.EvtFormatMessageRenderName(pm.Handle, eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageLevel);
247
return
NativeWrapper
.EvtFormatMessageRenderName(pm.Handle, eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageOpcode);
257
return
NativeWrapper
.EvtFormatMessageRenderName(pm.Handle, eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageTask);
267
return
NativeWrapper
.EvtFormatMessageRenderKeywords(pm.Handle, eventHandle, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageKeyword);