47 references to ToInt64
Microsoft.AspNetCore.Cryptography.Internal (2)
UnsafeBufferUtil.cs (2)
97
BlockCopyCore(from: (byte*)from.DangerousGetHandle(), to: (byte*)to.DangerousGetHandle(), byteCount: (ulong)length.
ToInt64
());
193
SecureZeroMemory(buffer, (ulong)length.
ToInt64
());
Microsoft.AspNetCore.Server.HttpSys (3)
_generated\12\Windows.Win32.HttpCloseRequestQueueSafeHandle.g.cs (1)
38
public override bool IsInvalid => this.handle.
ToInt64
() == 0L;
_generated\72\Windows.Win32.LocalFreeSafeHandle.g.cs (2)
38
public override bool IsInvalid => this.handle.
ToInt64
() == -1L || this.handle.
ToInt64
() == 0L;
Microsoft.Diagnostics.DataContractReader.Legacy (1)
IEnum.cs (1)
15
return GCHandle.ToIntPtr(gcHandle).
ToInt64
();
NuGet.Packaging (1)
Signing\Cms\NativeUtility.cs (1)
61
Marshal.StructureToPtr(certificateBlobs[i], new IntPtr(certificatesHandle.DangerousGetHandle().
ToInt64
() + Marshal.SizeOf(certificateBlobs[i]) * i), fDeleteOld: false);
PresentationCore (9)
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
390
hwnd.
ToInt64
(),
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
874
EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientInputMessage, EventTrace.Keyword.KeywordInput | EventTrace.Keyword.KeywordPerf, EventTrace.Level.Info, dispatcherHashCode, hwnd.
ToInt64
(), msg, wParamInt, lParamInt);
System\Windows\InterOp\HwndSource.cs (3)
1052
ctxHashCode = _hwndWrapper.Handle.
ToInt64
();
1084
ctxHashCode = _hwndWrapper.Handle.
ToInt64
();
1461
ctxHashCode = _hwndWrapper.Handle.
ToInt64
();
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
151
hwnd.
ToInt64
(),
System\Windows\InterOp\HwndTarget.cs (1)
241
EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientCreateVisual, EventTrace.Keyword.KeywordGeneral, EventTrace.Level.Info, Dispatcher.GetHashCode(), hwnd.
ToInt64
());
System\Windows\Media\Imaging\BitmapSource.cs (1)
1830
long rowPtr = pvPixels.
ToInt64
();
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1309
command.CopyCompletedEvent = (UInt64) hDuplicate.
ToInt64
();
PresentationFramework (2)
System\Windows\Standard\Utilities.cs (2)
39
return LOWORD((int) lParam.
ToInt64
());
46
return HIWORD((int) lParam.
ToInt64
());
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
419
IntPtr nameOffset = new IntPtr(_ptrToDsObjectNames.
ToInt64
() + dsObject.offsetName);
450
IntPtr offset = new IntPtr(_ptrToDsObjectNames.
ToInt64
() +
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
554
IntPtr strAddr = new IntPtr(baseAddr.
ToInt64
() + offset);
System.Data.Odbc (2)
System\Data\Odbc\OdbcStatementHandle.cs (2)
45
return value._value.
ToInt64
();
50
return _value.
ToInt64
();
System.Data.OleDb (16)
SafeHandles.cs (16)
258
Debug.Assert(buf1.
ToInt64
() < buf2.
ToInt64
() || buf2.
ToInt64
() + count <= buf1.
ToInt64
(), "overlapping region buf1");
259
Debug.Assert(buf2.
ToInt64
() < buf1.
ToInt64
() || buf1.
ToInt64
() + count <= buf2.
ToInt64
(), "overlapping region buf2");
274
Debug.Assert(dst.
ToInt64
() < src.
ToInt64
() || src.
ToInt64
() + count <= dst.
ToInt64
(), "overlapping region dst");
275
Debug.Assert(src.
ToInt64
() < dst.
ToInt64
() || dst.
ToInt64
() + count <= src.
ToInt64
(), "overlapping region src");
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
25
Console.WriteLine($"0x{handle.
ToInt64
():x} {_stacktrace?.ToString() ?? "no stacktrace..."}");
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeX509Handles.Unix.cs (1)
25
Console.WriteLine($"0x{handle.
ToInt64
():x} {_stacktrace?.ToString() ?? "no stacktrace..."}");
System.Speech (2)
AudioFormat\AudioFormatConverter.cs (1)
20
IntPtr extraDataPtr = new(waveFormatPtr.
ToInt64
() + Marshal.SizeOf<WaveFormatEx>());
Internal\SapiInterop\SpeechEvent.cs (1)
23
_wParam = (ulong)wParam.
ToInt64
();
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
262
return unchecked((int)intPtr.
ToInt64
());
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
94
System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.
ToInt64
());
MS\Win32\NativeMethods.cs (1)
622
return unchecked((int)intPtr.
ToInt64
());
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
327
return unchecked((int)intPtr.
ToInt64
());