73 references to ToInt32
Microsoft.AspNetCore.Cryptography.Internal (2)
UnsafeBufferUtil.cs (2)
93BlockCopyCore(from: (byte*)from.DangerousGetHandle(), to: (byte*)to.DangerousGetHandle(), byteCount: (uint)length.ToInt32()); 189SecureZeroMemory(buffer, (uint)length.ToInt32());
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeLibDesc.cs (1)
90typeInfo.GetRefTypeInfo(typeAttr.tdescAlias.lpValue.ToInt32(), out ComTypes.ITypeInfo referencedTypeInfo);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Windows\Network\WindowsTcpStateInfo.cs (2)
158var offset = Marshal.OffsetOf<MIB_TCPTABLE>(nameof(MIB_TCPTABLE.Table)).ToInt32(); 183var offset = Marshal.OffsetOf<MIB_TCP6TABLE>(nameof(MIB_TCP6TABLE.Table)).ToInt32();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Windows\Tcp6TableInfoTests.cs (2)
124var offset = Marshal.OffsetOf<MIB_TCP6TABLE>(nameof(MIB_TCP6TABLE.Table)).ToInt32(); 216var offset = Marshal.OffsetOf<MIB_TCP6TABLE>(nameof(MIB_TCP6TABLE.Table)).ToInt32();
Windows\TcpTableInfoTests.cs (2)
90var offset = Marshal.OffsetOf<MIB_TCPTABLE>(nameof(MIB_TCPTABLE.Table)).ToInt32(); 159var offset = Marshal.OffsetOf<MIB_TCPTABLE>(nameof(MIB_TCPTABLE.Table)).ToInt32();
Microsoft.Private.Windows.Core (1)
_generated\179\Windows.Win32.OLE_HANDLE.g.cs (1)
49 public static explicit operator OLE_HANDLE(IntPtr value) => new OLE_HANDLE((uint)value.ToInt32());
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
ProcessCodeMethods.cs (1)
97var p = res != 0 ? InvalidProcessId : pbi.InheritedFromUniqueProcessId.ToInt32();
PresentationCore (2)
System\Windows\InterOp\HwndTarget.cs (2)
953_displayDevicesAvailable = (wparam.ToInt32() != 0); 1217if (_sessionId.HasValue && (_sessionId.Value != lparam.ToInt32()))
PresentationFramework (10)
System\Windows\Shell\WindowChromeWorker.cs (5)
433if (wParam.ToInt32() != 0) // wParam == TRUE 528if (HT.CAPTION == (HT)wParam.ToInt32()) 545if (wParam.ToInt32() == SIZE_MAXIMIZED) 602var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 662var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32();
System\Windows\Standard\NativeMethods.cs (3)
1597int dwCookie = handle.ToInt32(); 2939return new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32())); 2970return new IntPtr(NativeMethodsSetLastError.SetWindowLong(hwnd, (int)nIndex, dwNewLong.ToInt32()));
System\Windows\Window.cs (2)
4312if (NativeMethods.SignedHIWORD(wParam.ToInt32()) == THUMBBUTTON.THBN_CLICKED) 4317int index = NativeMethods.SignedLOWORD(wParam.ToInt32());
System.Console (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.Data.Odbc (1)
System\Data\Odbc\OdbcStatementHandle.cs (1)
40return value._value.ToInt32();
System.Data.OleDb (20)
ColumnBinding.cs (8)
72_offsetStatus = binding.obStatus.ToInt32() + offset; 73_offsetLength = binding.obLength.ToInt32() + offset; 74_offsetValue = binding.obValue.ToInt32() + offset; 80_ordinal = binding.iOrdinal.ToInt32(); 81_maxLen = binding.cbMaxLen.ToInt32(); 87SetSize(Bindings.ParamSize.ToInt32()); 182length = RowBinding.ReadIntPtr(_offsetLength).ToInt32(); 186length = Bindings.DBColumnAccess[IndexWithinAccessor].cbDataLen.ToInt32();
OleDb_Util.cs (11)
576internal static readonly int OffsetOf_tagDBPROP_Status = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROP_x86), "dwStatus").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROP), "dwStatus").ToInt32(); 577internal static readonly int OffsetOf_tagDBPROP_Value = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROP_x86), "vValue").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROP), "vValue").ToInt32(); 578internal static readonly int OffsetOf_tagDBPROPSET_Properties = Marshal.OffsetOf(typeof(tagDBPROPSET), "rgProperties").ToInt32(); 579internal static readonly int OffsetOf_tagDBPROPINFO_Value = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROPINFO_x86), "vValue").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROPINFO), "vValue").ToInt32(); 580internal static readonly int OffsetOf_tagDBPROPIDSET_PropertySet = Marshal.OffsetOf(typeof(tagDBPROPIDSET), "guidPropertySet").ToInt32(); 581internal static readonly int OffsetOf_tagDBLITERALINFO_it = Marshal.OffsetOf(typeof(tagDBLITERALINFO), "it").ToInt32(); 582internal static readonly int OffsetOf_tagDBBINDING_obValue = Marshal.OffsetOf(typeof(tagDBBINDING), "obValue").ToInt32(); 583internal static readonly int OffsetOf_tagDBBINDING_wType = Marshal.OffsetOf(typeof(tagDBBINDING), "wType").ToInt32();
RowBinding.cs (1)
401int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr, ODB.OffsetOf_tagDBBINDING_obValue).ToInt32();
System.Diagnostics.Process (8)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (3)
33stdinRawFd = stdinFd.DangerousGetHandle().ToInt32(); 39stdoutRawFd = stdoutFd.DangerousGetHandle().ToInt32(); 45stderrRawFd = stderrFd.DangerousGetHandle().ToInt32();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System\Diagnostics\Process.Multiplexing.Unix.cs (4)
42int outputFd = outputHandle.DangerousGetHandle().ToInt32(); 43int errorFd = errorHandle.DangerousGetHandle().ToInt32(); 273int outputFd = outputHandle.DangerousGetHandle().ToInt32(); 274int errorFd = errorHandle.DangerousGetHandle().ToInt32();
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.IO.Ports.Native\Interop.Serial.cs (1)
75FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.Net.Http.WinHttpHandler (2)
System\Net\Http\WinHttpRequestCallback.cs (1)
446switch (unchecked((uint)asyncResult.dwResult.ToInt32()))
System\Net\Http\WinHttpTraceHelper.cs (1)
26uint apiIndex = (uint)asyncResult.dwResult.ToInt32();
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
59get => EventHandleIntPtr.ToInt32();
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
1088offset = checked((uint)new IntPtr(lazySignature[1]).ToInt32());
System.Private.Windows.Core (1)
_generated\181\Windows.Win32.OLE_HANDLE.g.cs (1)
49 public static explicit operator OLE_HANDLE(IntPtr value) => new OLE_HANDLE((uint)value.ToInt32());
UIAutomationClient (4)
MS\Internal\Automation\FocusTracker.cs (1)
294Accessible acc = Accessible.Create(hwnd, UnsafeNativeMethods.OBJID_CLIENT, i.ToInt32() + 1);
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
117int ilen = len.ToInt32(); 154return ((IntPtr) _hwnd).ToInt32(); 1090id[1] = hwnd.h.ToInt32();
UIAutomationClientSideProviders (7)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (4)
94System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.ToInt64()); 95*(int*)((byte*)pszText.ToPointer()) = rmem.Address.ToInt32() + cbSize; 2375hItem = item.hItem.ToInt32(); 2534hwnd = item.hwnd.ToInt32();
MS\Internal\AutomationProxies\NonClientArea.cs (1)
108System.Diagnostics.Debug.Assert(idChild == 0, string.Format(CultureInfo.CurrentCulture, "Invalid Child Id, idChild == {2}\n\rClassName: \"{0}\"\n\rhwnd = 0x{1:x8}", Misc.ProxyGetClassName(hwnd), hwnd.ToInt32(), idChild));
MS\Internal\AutomationProxies\ProxySimple.cs (1)
151id[1] = _hwnd.ToInt32();
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1648return _hItem.ToInt32();
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
469Debug.WriteLineIf(_traceHandle.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): BuildWindowCore (parent=0x{1:x8})", this.Name, hwndParent.Handle.ToInt32()));