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