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