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