40 references to UnsafeNativeMethods
mscorlib (40)
microsoft\win32\safehandles\safelibraryhandle.cs (1)
32
return
UnsafeNativeMethods
.FreeLibrary(handle);
system\diagnostics\eventing\eventprovider.cs (26)
80
UnsafeNativeMethods
.ManifestEtw.EtwEnableCallback m_etwCallback; // Trace Callback function
153
m_etwCallback = new
UnsafeNativeMethods
.ManifestEtw.EtwEnableCallback(EtwEnableCallBack);
164
UnsafeNativeMethods
.ManifestEtw.EVENT_INFO_CLASS eventInfoClass,
168
int status =
UnsafeNativeMethods
.ManifestEtw.ERROR_NOT_SUPPORTED;
174
status =
UnsafeNativeMethods
.ManifestEtw.EventSetInformation(
273
[In]
UnsafeNativeMethods
.ManifestEtw.EVENT_FILTER_DESCRIPTOR* filterData,
287
if (controlCode ==
UnsafeNativeMethods
.ManifestEtw.EVENT_CONTROL_CODE_ENABLE_PROVIDER)
333
else if (controlCode ==
UnsafeNativeMethods
.ManifestEtw.EVENT_CONTROL_CODE_DISABLE_PROVIDER)
341
else if (controlCode ==
UnsafeNativeMethods
.ManifestEtw.EVENT_CONTROL_CODE_CAPTURE_STATE)
471
hr =
UnsafeNativeMethods
.ManifestEtw.EnumerateTraceGuidsEx(
UnsafeNativeMethods
.ManifestEtw.TRACE_QUERY_INFO_CLASS.TraceGuidQueryInfo,
480
var providerInfos = (
UnsafeNativeMethods
.ManifestEtw.TRACE_GUID_INFO*)buffer;
481
var providerInstance = (
UnsafeNativeMethods
.ManifestEtw.TRACE_PROVIDER_INSTANCE_INFO*)&providerInfos[1];
488
var enabledInfos = (
UnsafeNativeMethods
.ManifestEtw.TRACE_ENABLE_INFO*)&providerInstance[1];
497
providerInstance = (
UnsafeNativeMethods
.ManifestEtw.TRACE_PROVIDER_INSTANCE_INFO*)&structBase[providerInstance->NextOffset];
528
UnsafeNativeMethods
.ManifestEtw.EVENT_FILTER_DESCRIPTOR* filterData, out ControllerCommand command, out byte[] data, out int dataStart)
634
case
UnsafeNativeMethods
.ManifestEtw.ERROR_ARITHMETIC_OVERFLOW:
635
case
UnsafeNativeMethods
.ManifestEtw.ERROR_MORE_DATA:
638
case
UnsafeNativeMethods
.ManifestEtw.ERROR_NOT_ENOUGH_MEMORY:
1039
status =
UnsafeNativeMethods
.ManifestEtw.EventWriteTransferWrapper(m_regHandle, ref eventDescriptor, activityID, childActivityID, argCount, userData);
1065
status =
UnsafeNativeMethods
.ManifestEtw.EventWriteTransferWrapper(m_regHandle, ref eventDescriptor, activityID, childActivityID, argCount, userData);
1116
int status =
UnsafeNativeMethods
.ManifestEtw.EventWriteTransferWrapper(m_regHandle, ref eventDescriptor, activityID, childActivityID, dataCount, (EventData*)data);
1137
status =
UnsafeNativeMethods
.ManifestEtw.EventWriteTransferWrapper(
1157
private unsafe uint EventRegister(ref Guid providerId,
UnsafeNativeMethods
.ManifestEtw.EtwEnableCallback enableCallback)
1161
return
UnsafeNativeMethods
.ManifestEtw.EventRegister(ref providerId, enableCallback, null, ref m_regHandle);
1167
return
UnsafeNativeMethods
.ManifestEtw.EventUnregister(registrationHandle);
system\diagnostics\eventing\eventsource.cs (7)
537
if (
UnsafeNativeMethods
.ManifestEtw.EventActivityIdControl(
538
UnsafeNativeMethods
.ManifestEtw.ActivityControl.EVENT_ACTIVITY_CTRL_GET_SET_ID,
583
UnsafeNativeMethods
.ManifestEtw.EventActivityIdControl(
584
UnsafeNativeMethods
.ManifestEtw.ActivityControl.EVENT_ACTIVITY_CTRL_GET_SET_ID,
604
UnsafeNativeMethods
.ManifestEtw.EventActivityIdControl(
605
UnsafeNativeMethods
.ManifestEtw.ActivityControl.EVENT_ACTIVITY_CTRL_GET_ID,
1528
UnsafeNativeMethods
.ManifestEtw.EVENT_INFO_CLASS.SetTraits,
system\threading\Tasks\AsyncCausalityTracer.cs (1)
149
int hresult = Microsoft.Win32.
UnsafeNativeMethods
.RoGetActivationFactory(ClassId, ref guid, out factory);
system\timezoneinfo.cs (5)
235
long result =
UnsafeNativeMethods
.GetTimeZoneInformation(out timeZoneInformation);
1827
long result =
UnsafeNativeMethods
.GetDynamicTimeZoneInformation(out dynamicTimeZoneInformation);
2617
Boolean succeeded =
UnsafeNativeMethods
.GetFileMUIPath(
2648
UnsafeNativeMethods
.LoadLibraryEx(filePath, IntPtr.Zero, Win32Native.LOAD_LIBRARY_AS_DATAFILE)) {
2654
int result =
UnsafeNativeMethods
.LoadString(handle, resource,