30 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());
PresentationCore (2)
System\Windows\InterOp\HwndTarget.cs (2)
960_displayDevicesAvailable = (wparam.ToInt32() != 0); 1224if (_sessionId.HasValue && (_sessionId.Value != lparam.ToInt32()))
PresentationFramework (10)
System\Windows\Shell\WindowChromeWorker.cs (5)
621if (wParam.ToInt32() != 0) // wParam == TRUE 716if (HT.CAPTION == (HT)wParam.ToInt32()) 733if (wParam.ToInt32() == SIZE_MAXIMIZED) 863var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 923var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32();
System\Windows\Standard\NativeMethods.cs (3)
1619int dwCookie = handle.ToInt32(); 3033return new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32())); 3072return new IntPtr(NativeMethodsSetLastError.SetWindowLong(hwnd, (int)nIndex, dwNewLong.ToInt32()));
System\Windows\Window.cs (2)
4236if (NativeMethods.SignedHIWORD(wParam.ToInt32()) == THUMBBUTTON.THBN_CLICKED) 4241int 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.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Poll.cs (1)
40FileDescriptor = 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)
295Accessible acc = Accessible.Create(hwnd, UnsafeNativeMethods.OBJID_CLIENT, i.ToInt32() + 1);
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
126int ilen = len.ToInt32(); 165return ((IntPtr) _hwnd).ToInt32(); 1103id[1] = hwnd.h.ToInt32();
UIAutomationClientSideProviders (7)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (4)
96System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.ToInt64()); 97*(int*)((byte*)pszText.ToPointer()) = rmem.Address.ToInt32() + cbSize; 2363hItem = item.hItem.ToInt32(); 2516hwnd = item.hwnd.ToInt32();
MS\Internal\AutomationProxies\NonClientArea.cs (1)
119System.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)
160id[1] = _hwnd.ToInt32();
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1655return _hItem.ToInt32();
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
485Debug.WriteLineIf(_traceHandle.TraceVerbose, String.Format(CultureInfo.CurrentCulture, "WindowsFormsHost({0}): BuildWindowCore (parent=0x{1:x8})", this.Name, hwndParent.Handle.ToInt32()));