86 references to ToInt32
mscorlib (6)
system\intptr.cs (2)
243return new IntPtr(pointer.ToInt32() + offset); 259return new IntPtr(pointer.ToInt32() - offset);
system\runtime\interopservices\marshal.cs (1)
1187numBytes = new UIntPtr(unchecked((uint)cb.ToInt32()));
system\runtime\remoting\crossappdomainchannel.cs (1)
200_ContextID = ctxId.ToInt32();
system\security\principal\windowsidentity.cs (1)
574pGroups.ReadArray((uint)Marshal.OffsetOf(typeof(Win32Native.TOKEN_GROUPS), "Groups").ToInt32(),
system\threading\overlapped.cs (1)
340get { return m_overlappedData.UserHandle.ToInt32(); }
PresentationCore (2)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (2)
1053_displayDevicesAvailable = (wparam.ToInt32() != 0); 1317if (_sessionId.HasValue && (_sessionId.Value != lparam.ToInt32()))
PresentationFramework (12)
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (5)
726if (wParam.ToInt32() != 0) // wParam == TRUE 829if (HT.CAPTION == (HT)wParam.ToInt32()) 850if (wParam.ToInt32() == SIZE_MAXIMIZED) 1000var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32(); 1072var dwStyle = (WS)NativeMethods.GetWindowLongPtr(_hwnd, GWL.STYLE).ToInt32();
src\Framework\System\Windows\Standard\NativeMethods.cs (3)
1714int dwCookie = handle.ToInt32(); 3442return new IntPtr(SetClassLongPtr32(hwnd, nIndex, dwNewLong.ToInt32())); 3505return new IntPtr(NativeMethodsSetLastError.SetWindowLong(hwnd, (int)nIndex, dwNewLong.ToInt32()));
src\Framework\System\Windows\Standard\Utilities.cs (2)
48return LOWORD(lParam.ToInt32()); 54return HIWORD(lParam.ToInt32());
src\Framework\System\Windows\Window.cs (2)
4480if (NativeMethods.SignedHIWORD(wParam.ToInt32()) == THUMBBUTTON.THBN_CLICKED) 4485int index = NativeMethods.SignedLOWORD(wParam.ToInt32());
System (3)
net\System\Net\_SSPIWrapper.cs (1)
652int ptr = hwnd.ToInt32();
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
742return info.UniqueProcessId.ToInt32(); 1146int processInfoProcessId = pi.UniqueProcessId.ToInt32();
System.Activities.Presentation (5)
Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (2)
59windowStyle = new IntPtr(windowStyle.ToInt32() | Win32Interop.WS_CLIPSIBLINGS | Win32Interop.WS_CLIPCHILDREN); 75return new IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32()));
System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
20exStyle = new IntPtr(exStyle.ToInt32() | Win32Interop.WS_EX_CONTEXTHELP); 35int intValue = style.ToInt32(); 70exStyle = new IntPtr(exStyle.ToInt32() | Win32Interop.WS_EX_DLGMODALFRAME);
System.Data (27)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Tools\Common\Win32Interop.cs (2)
59windowStyle = new IntPtr(windowStyle.ToInt32() | Win32Interop.WS_CLIPSIBLINGS | Win32Interop.WS_CLIPCHILDREN); 75return new IntPtr(SetWindowLong32(hWnd, nIndex, dwNewLong.ToInt32()));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WindowExtensionMethods.cs (3)
20exStyle = new IntPtr(exStyle.ToInt32() | Win32Interop.WS_EX_CONTEXTHELP); 35int intValue = style.ToInt32(); 70exStyle = new IntPtr(exStyle.ToInt32() | Win32Interop.WS_EX_DLGMODALFRAME);
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2447return (IntPtr) checked(pbase.ToInt32() + offset);
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (1)
53return (int)value._value.ToInt32();
fx\src\data\System\Data\OleDb\ColumnBinding.cs (8)
73_offsetStatus = binding.obStatus.ToInt32() + offset; 74_offsetLength = binding.obLength.ToInt32() + offset; 75_offsetValue = binding.obValue.ToInt32() + offset; 81_ordinal = binding.iOrdinal.ToInt32(); 82_maxLen = binding.cbMaxLen.ToInt32(); 88SetSize(Bindings.ParamSize.ToInt32()); 164length = RowBinding.ReadIntPtr(_offsetLength).ToInt32(); 167length = Bindings.DBColumnAccess[IndexWithinAccessor].cbDataLen.ToInt32();
fx\src\data\System\Data\OleDb\OLEDB_Util.cs (8)
517static internal readonly int OffsetOf_tagDBPROP_Status = Marshal.OffsetOf(typeof(tagDBPROP), "dwStatus").ToInt32(); 518static internal readonly int OffsetOf_tagDBPROP_Value = Marshal.OffsetOf(typeof(tagDBPROP), "vValue").ToInt32(); 519static internal readonly int OffsetOf_tagDBPROPSET_Properties = Marshal.OffsetOf(typeof(tagDBPROPSET), "rgProperties").ToInt32(); 520static internal readonly int OffsetOf_tagDBPROPINFO_Value = Marshal.OffsetOf(typeof(tagDBPROPINFO), "vValue").ToInt32(); 521static internal readonly int OffsetOf_tagDBPROPIDSET_PropertySet = Marshal.OffsetOf(typeof(tagDBPROPIDSET), "guidPropertySet").ToInt32(); 522static internal readonly int OffsetOf_tagDBLITERALINFO_it = Marshal.OffsetOf(typeof(tagDBLITERALINFO), "it").ToInt32(); 523static internal readonly int OffsetOf_tagDBBINDING_obValue = Marshal.OffsetOf(typeof(tagDBBINDING), "obValue").ToInt32(); 524static internal readonly int OffsetOf_tagDBBINDING_wType = Marshal.OffsetOf(typeof(tagDBBINDING), "wType").ToInt32();
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
449BuildSchemaTableInfoTable(columnCount.ToInt32(), columnInfos, filterITypeInfo, filterChapters);
fx\src\data\System\Data\OleDb\RowBinding.cs (1)
358int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr, ODB.OffsetOf_tagDBBINDING_obValue).ToInt32();
fx\src\data\System\Data\Sql\sqlnorm.cs (1)
92int offset = Marshal.OffsetOf(fi.DeclaringType, fi.Name).ToInt32();
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
1083int cbOffset = Marshal.OffsetOf(typeof(UnsafeNativeMethods.FILE_FULL_EA_INFORMATION), "EaName").ToInt32();
System.Drawing (3)
commonui\System\Drawing\Advanced\EncoderParameters.cs (1)
108int count = Marshal.ReadIntPtr(memory).ToInt32();
commonui\System\Drawing\Icon.cs (2)
906srcPtr = new IntPtr(sourceData.Scan0.ToInt32() + offsetSrc); 907destPtr = new IntPtr(targetData.Scan0.ToInt32() + offsetDest);
System.Messaging (1)
System\Messaging\Message.cs (1)
1494int handle = value.Handle.DangerousGetHandle().ToInt32(); // this is safe because MSMQ always returns 32-bit handle
System.Runtime.Remoting (2)
channels\ipc\ipcport.cs (2)
102if (handle.Handle.ToInt32() == NativePipe.INVALID_HANDLE_VALUE){ 156if(handle.Handle.ToInt32() != NativePipe.INVALID_HANDLE_VALUE)
System.ServiceModel (1)
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (1)
48Int32 sizeOfByteArray = (SafeNativeMethods.GlobalSize(hGlobal)).ToInt32();
System.Transactions (2)
System\Transactions\Oletx\HandleTable.cs (2)
31return handleTable.Remove(handle.ToInt32()); 41if (!handleTable.TryGetValue(handle.ToInt32(), out target))
System.Web (2)
Hosting\ISAPIWorkerRequest.cs (1)
476int temp = p.ToInt32();
Util\altserialization.cs (1)
130writer.Write((Int32)v.ToInt32());
System.Windows.Forms (9)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\Int32CAMarshaler.cs (1)
45return addr.ToInt32();
winforms\Managed\System\WinForms\Form.cs (1)
7463int wParam = m.WParam.ToInt32();
winforms\Managed\System\WinForms\ImageList.cs (2)
648srcPtr = new IntPtr(sourceData.Scan0.ToInt32() + offsetSrc); 649destPtr = new IntPtr(targetData.Scan0.ToInt32() + offsetDest);
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
3056if ((m.LParam.ToInt32() & NativeMethods.GCS_COMPSTR) != 0) 3061else if ((m.LParam.ToInt32() & NativeMethods.GCS_RESULTSTR) != 0)
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
778if (info.hbmpItem != IntPtr.Zero && info.hbmpItem.ToInt32() > NativeMethods.HBMMENU_POPUP_MINIMIZE) { 785switch (info.hbmpItem.ToInt32()) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
1784if (bubbleSizeInt.ToInt32() != NativeMethods.S_FALSE) {
UIAutomationClient (4)
MS\Internal\Automation\FocusTracker.cs (1)
303Accessible acc = Accessible.Create(hwnd, UnsafeNativeMethods.OBJID_CLIENT, i.ToInt32() + 1);
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
134int ilen = len.ToInt32(); 173return ((IntPtr) _hwnd).ToInt32(); 1111id[1] = hwnd.h.ToInt32();
UIAutomationClientsideProviders (7)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (4)
103System.Diagnostics.Debug.Assert(remoteTextArea.ToInt32() == remoteTextArea.ToInt64()); 104*(int*)((byte*)pszText.ToPointer()) = rmem.Address.ToInt32() + cbSize; 2370hItem = item.hItem.ToInt32(); 2523hwnd = item.hwnd.ToInt32();
MS\Internal\AutomationProxies\NonClientArea.cs (1)
116System.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)
167id[1] = _hwnd.ToInt32();
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
1664return _hItem.ToInt32();