124 references to UnsafeNativeMethods
System.ServiceModel.Internals (124)
System\Runtime\Diagnostics\DiagnosticEventProvider.cs (34)
26UnsafeNativeMethods.EtwEnableCallback etwCallback; // Trace Callback function 80this.etwCallback = new UnsafeNativeMethods.EtwEnableCallback(EtwEnableCallBack); 81uint etwRegistrationStatus = UnsafeNativeMethods.EventRegister(ref this.providerId, this.etwCallback, null, ref this.traceRegistrationHandle); 134UnsafeNativeMethods.EventUnregister(this.traceRegistrationHandle); 208return UnsafeNativeMethods.EventEnabled(this.traceRegistrationHandle, ref eventDescriptor); 227case UnsafeNativeMethods.ERROR_ARITHMETIC_OVERFLOW: 228case UnsafeNativeMethods.ERROR_MORE_DATA: 231case UnsafeNativeMethods.ERROR_NOT_ENOUGH_MEMORY: 247static unsafe string EncodeObject(ref object data, UnsafeNativeMethods.EventData* dataDescriptor, byte* dataBuffer) 418status = (int)UnsafeNativeMethods.EventWriteString(this.traceRegistrationHandle, eventLevel, eventKeywords, pdata); 473UnsafeNativeMethods.EventData userData; 501status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, (uint)argCount, &userData); 508status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, 0, null); 512status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, (uint)argCount, &userData); 536UnsafeNativeMethods.EventData* userData = stackalloc UnsafeNativeMethods.EventData[argCount]; 537UnsafeNativeMethods.EventData* userDataPtr = (UnsafeNativeMethods.EventData*)userData; 585userDataPtr = (UnsafeNativeMethods.EventData*)userData; 619status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, (uint)argCount, userData); 665UnsafeNativeMethods.EventData userData; 675status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, 1, &userData); 713status = UnsafeNativeMethods.EventWrite(this.traceRegistrationHandle, ref eventDescriptor, (uint)dataCount, (UnsafeNativeMethods.EventData*)data); 763UnsafeNativeMethods.EventData* userData = stackalloc UnsafeNativeMethods.EventData[argCount]; // allocation for the data descriptors 764UnsafeNativeMethods.EventData* userDataPtr = (UnsafeNativeMethods.EventData*)userData; 809userDataPtr = (UnsafeNativeMethods.EventData*)userData; 843status = UnsafeNativeMethods.EventWriteTransfer(this.traceRegistrationHandle, ref eventDescriptor, ref eventTraceActivity.ActivityId, ref relatedActivityId, (uint)argCount, userData); 848status = UnsafeNativeMethods.EventWriteTransfer(this.traceRegistrationHandle, ref eventDescriptor, ref eventTraceActivity.ActivityId, ref relatedActivityId, 0, null); 875status = UnsafeNativeMethods.EventWriteTransfer(this.traceRegistrationHandle, 880(UnsafeNativeMethods.EventData*)data); 895UnsafeNativeMethods.EventActivityIdControl((int)ActivityControl.EVENT_ACTIVITY_CTRL_SET_ID, ref id);
System\Runtime\Diagnostics\EtwProvider.cs (84)
75byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 76UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 106byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 107UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 134byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 135UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 163byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 164UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 196byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 197UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 234byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 235UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 276byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 277UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 323byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 324UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 374byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 375UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 429byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 430UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 488byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 489UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 551byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 552UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 618byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 619UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 689byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 690UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 745byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 746UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 765byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 766UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 788byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 789UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 814byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 815UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 834byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 835UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 857byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 858UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 902byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 903UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 986byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 987UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1066byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1067UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1123byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1124UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1188byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1189UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1260byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1261UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1334byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1335UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData; 1397byte* eventData = stackalloc byte[sizeof(UnsafeNativeMethods.EventData) * argumentCount]; 1398UnsafeNativeMethods.EventData* eventDataPtr = (UnsafeNativeMethods.EventData*)eventData;
System\Runtime\Diagnostics\EventLogger.cs (1)
308UnsafeNativeMethods.ReportEvent(
System\Runtime\Interop\SafeEventLogWriteHandle.cs (1)
28SafeEventLogWriteHandle retval = UnsafeNativeMethods.RegisterEventSource(uncServerName, sourceName);
System\Runtime\IOThreadTimer.cs (3)
81if (UnsafeNativeMethods.GetSystemTimeAdjustment(out dummyAdjustment, out increment, out dummyAdjustmentDisabled) != 0) 632SafeWaitHandle handle = UnsafeNativeMethods.CreateWaitableTimer(IntPtr.Zero, false, null); 643if (!UnsafeNativeMethods.SetWaitableTimer(timer, ref dueTime, 0, IntPtr.Zero, IntPtr.Zero, false))
System\Runtime\Ticks.cs (1)
22UnsafeNativeMethods.GetSystemTimeAsFileTime(out time);