47 references to ToInt64
Microsoft.AspNetCore.Cryptography.Internal (2)
UnsafeBufferUtil.cs (2)
97BlockCopyCore(from: (byte*)from.DangerousGetHandle(), to: (byte*)to.DangerousGetHandle(), byteCount: (ulong)length.ToInt64()); 193SecureZeroMemory(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)
15return GCHandle.ToIntPtr(gcHandle).ToInt64();
NuGet.Packaging (1)
Signing\Cms\NativeUtility.cs (1)
61Marshal.StructureToPtr(certificateBlobs[i], new IntPtr(certificatesHandle.DangerousGetHandle().ToInt64() + Marshal.SizeOf(certificateBlobs[i]) * i), fDeleteOld: false);
PresentationCore (9)
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
390hwnd.ToInt64(),
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
874EventTrace.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)
1052ctxHashCode = _hwndWrapper.Handle.ToInt64(); 1084ctxHashCode = _hwndWrapper.Handle.ToInt64(); 1461ctxHashCode = _hwndWrapper.Handle.ToInt64();
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
151hwnd.ToInt64(),
System\Windows\InterOp\HwndTarget.cs (1)
241EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientCreateVisual, EventTrace.Keyword.KeywordGeneral, EventTrace.Level.Info, Dispatcher.GetHashCode(), hwnd.ToInt64());
System\Windows\Media\Imaging\BitmapSource.cs (1)
1830long rowPtr = pvPixels.ToInt64();
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
1309command.CopyCompletedEvent = (UInt64) hDuplicate.ToInt64();
PresentationFramework (2)
System\Windows\Standard\Utilities.cs (2)
39return LOWORD((int) lParam.ToInt64()); 46return HIWORD((int) lParam.ToInt64());
PresentationUI (2)
MS\Internal\Documents\PeoplePickerWrapper.cs (2)
419IntPtr nameOffset = new IntPtr(_ptrToDsObjectNames.ToInt64() + dsObject.offsetName); 450IntPtr offset = new IntPtr(_ptrToDsObjectNames.ToInt64() +
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
554IntPtr strAddr = new IntPtr(baseAddr.ToInt64() + offset);
System.Data.Odbc (2)
System\Data\Odbc\OdbcStatementHandle.cs (2)
45return value._value.ToInt64(); 50return _value.ToInt64();
System.Data.OleDb (16)
SafeHandles.cs (16)
258Debug.Assert(buf1.ToInt64() < buf2.ToInt64() || buf2.ToInt64() + count <= buf1.ToInt64(), "overlapping region buf1"); 259Debug.Assert(buf2.ToInt64() < buf1.ToInt64() || buf1.ToInt64() + count <= buf2.ToInt64(), "overlapping region buf2"); 274Debug.Assert(dst.ToInt64() < src.ToInt64() || src.ToInt64() + count <= dst.ToInt64(), "overlapping region dst"); 275Debug.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)
25Console.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)
25Console.WriteLine($"0x{handle.ToInt64():x} {_stacktrace?.ToString() ?? "no stacktrace..."}");
System.Speech (2)
AudioFormat\AudioFormatConverter.cs (1)
20IntPtr 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)
262return unchecked((int)intPtr.ToInt64());
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (1)
94System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.ToInt64());
MS\Win32\NativeMethods.cs (1)
622return unchecked((int)intPtr.ToInt64());
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (1)
327return unchecked((int)intPtr.ToInt64());