42 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.CodeAnalysis.EditorFeatures (1)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
300=> msg.wParam.ToInt32() switch
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
128var intPtr = ((IntPtr)value.HostObjectValue).ToInt32();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
128var intPtr = ((IntPtr)value.HostObjectValue).ToInt32();
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\NativePatching.cs (1)
76var targetBytes = new byte[output.cbBuf.ToInt32()];
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();
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)
443if (wParam.ToInt32() != 0) // wParam == TRUE 538if (HT.CAPTION == (HT)wParam.ToInt32()) 555if (wParam.ToInt32() == SIZE_MAXIMIZED) 612var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 672var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32();
System\Windows\Standard\NativeMethods.cs (3)
1595int dwCookie = handle.ToInt32(); 2914return new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32())); 2945return new IntPtr(NativeMethodsSetLastError.SetWindowLong(hwnd, (int)nIndex, dwNewLong.ToInt32()));
System\Windows\Window.cs (2)
4321if (NativeMethods.SignedHIWORD(wParam.ToInt32()) == THUMBBUTTON.THBN_CLICKED) 4326int index = NativeMethods.SignedLOWORD(wParam.ToInt32());
System.Console (1)
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.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\System.IO.Ports.Native\Interop.Serial.cs (1)
75FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.Net.Sockets (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = fd.DangerousGetHandle().ToInt32(),
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
58get => EventHandleIntPtr.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)
476Debug.WriteLineIf(_traceHandle.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): BuildWindowCore (parent=0x{1:x8})", this.Name, hwndParent.Handle.ToInt32()));