226 references to SizeOf
illink (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
214
/// <see cref="System.Runtime.InteropServices.Marshal.
SizeOf
(System.Type)"/>
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
214
/// <see cref="System.Runtime.InteropServices.Marshal.
SizeOf
(System.Type)"/>
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
ProcessTracker.cs (1)
34
var length = Marshal.
SizeOf
(typeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\SolutionAssetCache.cs (1)
26
RoslynDebug.Assert(Marshal.
SizeOf
(typeof(SharedStopwatch)) == 8);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
57
int targetBlockSize = Marshal.
SizeOf
(typeof(Guid));
Microsoft.ML.Core (1)
Data\ModelHeader.cs (1)
109
Contracts.Assert(Marshal.
SizeOf
(typeof(ModelHeader)) == Size);
Microsoft.ML.Data (4)
Data\Conversion.cs (2)
442
if (Marshal.
SizeOf
(keySrc.RawType) > Marshal.
SizeOf
(typeDst.RawType))
DataLoadSave\Binary\BinarySaver.cs (1)
557
Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.
SizeOf
(typeof(Header)));
DataLoadSave\Transpose\TransposeSaver.cs (1)
179
Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.
SizeOf
(typeof(Header)));
Microsoft.ML.FastTree (1)
Utils\BufferPoolManager.cs (1)
81
if (buffer != null && buffer.Length * Marshal.
SizeOf
(typeof(T)) >= MinBufferSizeInBytes)
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
388
_sizeofT = Marshal.
SizeOf
(typeof(T));
Microsoft.VisualStudio.LanguageServices (5)
EditorConfigSettings\SettingsEditorPane.cs (1)
77
cbSize = (uint)Marshal.
SizeOf
(typeof(OLECRINFO)),
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
40
StructSize = Marshal.
SizeOf
(typeof(ImageAttributes)),
Library\AbstractObjectList.cs (1)
381
pData[0].dwSize = (uint)Marshal.
SizeOf
(typeof(VSCOMPONENTSELECTORDATA));
Options\LocalUserRegistryOptionPersister.cs (2)
153
if (Marshal.
SizeOf
(Enum.GetUnderlyingType(optionType)) > Marshal.
SizeOf
(typeof(int)))
MSBuildTaskHost (2)
NativeMethods.cs (2)
295
_length = (uint)Marshal.
SizeOf
(typeof(MemoryStatus));
400
_nLength = (uint)Marshal.
SizeOf
(typeof(SecurityAttributes));
PresentationCore (5)
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
520
int allocationSize = (int)(Marshal.
SizeOf
(typeof(MS.Win32.Recognizer.PACKET_PROPERTY)) * packetDescription.cPacketProperties);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (3)
123
int result = (int)MS.Win32.UnsafeNativeMethods.GetRawInputDeviceList(null, ref deviceCount, (uint)Marshal.
SizeOf
(typeof(NativeMethods.RAWINPUTDEVICELIST)));
128
int count = (int)MS.Win32.UnsafeNativeMethods.GetRawInputDeviceList(ridl, ref deviceCount, (uint)Marshal.
SizeOf
(typeof(NativeMethods.RAWINPUTDEVICELIST)));
138
cbSize = (uint)Marshal.
SizeOf
(typeof(NativeMethods.RID_DEVICE_INFO))
System\Windows\Media\Imaging\PropVariant.cs (1)
132
long size = Marshal.
SizeOf
(type) * length;
PresentationFramework (34)
MS\Internal\Controls\ActiveXSite.cs (1)
259
lpFrameInfo.cb = (uint)Marshal.
SizeOf
(typeof(NativeMethods.OLEINPLACEFRAMEINFO));
MS\Internal\IO\Packaging\indexingfiltermarshaler.cs (1)
212
pNative = Marshal.AllocCoTaskMem(Marshal.
SizeOf
(typeof(PROPVARIANT)));
MS\Internal\Printing\NativeMethods.cs (2)
28
public int lStructSize = Marshal.
SizeOf
(typeof(PRINTDLGEX32));
54
public int lStructSize = Marshal.
SizeOf
(typeof(PRINTDLGEX64));
MS\Internal\Printing\PrintDlgExMarshaler.cs (6)
490
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.
SizeOf
(typeof(NativeMethods.PRINTPAGERANGE)));
529
int cbBufferSize = Marshal.
SizeOf
(typeof(NativeMethods.PRINTDLGEX32));
569
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.
SizeOf
(typeof(NativeMethods.PRINTPAGERANGE)));
608
int cbBufferSize = Marshal.
SizeOf
(typeof(NativeMethods.PRINTDLGEX64));
723
Marshal.
SizeOf
(typeof(NativeMethods.DEVNAMES)));
726
ushort baseOffset = (ushort)Marshal.
SizeOf
(typeof(NativeMethods.DEVNAMES));
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (6)
458
var abi_element_size = Marshal.
SizeOf
(HelperType);
493
var abi_element_size = Marshal.
SizeOf
(HelperType);
511
var abi_element_size = Marshal.
SizeOf
(HelperType);
538
var abi_element_size = Marshal.
SizeOf
(HelperType);
568
var abi_element_size = Marshal.
SizeOf
(HelperType);
587
var abi_element_size = Marshal.
SizeOf
(HelperType);
System\Windows\Controls\Primitives\Popup.cs (2)
2678
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.MONITORINFOEX))
2776
int resultOfGetObject = UnsafeNativeMethods.GetObject(iconInfo.hbmMask.MakeHandleRef(null), Marshal.
SizeOf
(typeof(NativeMethods.BITMAP)), bm);
System\Windows\Documents\ImmComposition.cs (3)
1330
int requestSize = Marshal.
SizeOf
(typeof(NativeMethods.RECONVERTSTRING)) + (target.Length * sizeof(short)) + ((_maxSrounding + 1) * sizeof(short) * 2);
1344
reconv.dwStrOffset = Marshal.
SizeOf
(typeof(NativeMethods.RECONVERTSTRING)); // in byte count
1374
p += Marshal.
SizeOf
(typeof(NativeMethods.RECONVERTSTRING));
System\Windows\Standard\MessageWindow.cs (1)
45
cbSize = Marshal.
SizeOf
(typeof(WNDCLASSEX)),
System\Windows\Standard\NativeMethods.cs (7)
1875
cbSize = Marshal.
SizeOf
(typeof(NONCLIENTMETRICS))
1888
cbSize = Marshal.
SizeOf
(typeof(NONCLIENTMETRICS)) - sizeof(int)
1934
public int cbSize = Marshal.
SizeOf
(typeof(MONITORINFO));
2153
public int length = Marshal.
SizeOf
(typeof(WINDOWPLACEMENT));
2328
var filterstruct = new CHANGEFILTERSTRUCT { cbSize = (uint)Marshal.
SizeOf
(typeof(CHANGEFILTERSTRUCT)) };
3020
var hc = new HIGHCONTRAST { cbSize = Marshal.
SizeOf
(typeof(HIGHCONTRAST)) };
3182
var dti = new DWM_TIMING_INFO { cbSize = Marshal.
SizeOf
(typeof(DWM_TIMING_INFO)) };
System\Windows\SystemParameters.cs (1)
170
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.HIGHCONTRAST_I))
System\Windows\Window.cs (4)
3958
length = Marshal.
SizeOf
(typeof(NativeMethods.WINDOWPLACEMENT))
5912
length = Marshal.
SizeOf
(typeof(NativeMethods.WINDOWPLACEMENT))
6000
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.MONITORINFOEX))
7407
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.MONITORINFOEX))
PresentationUI (3)
MS\Internal\Documents\PeoplePickerWrapper.cs (3)
133
(uint)Marshal.
SizeOf
(typeof(UnsafeNativeMethods.QueryInitParams)),
168
(uint)Marshal.
SizeOf
(typeof(UnsafeNativeMethods.OpenQueryWindowParams)),
524
Marshal.
SizeOf
(typeof(UnsafeNativeMethods.DsObject));
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
394
return GetArrayCapability<T>(capability, readItem, Marshal.
SizeOf
(typeof(T)));
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
387
ValidateCheck(offset, Marshal.
SizeOf
(structure.GetType()));
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\NativeMethods.cs (1)
285
internal int cbSize = Marshal.
SizeOf
(typeof(MONITORINFOEX));
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
172
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.MONITORINFOEX))
TlsFeaturesObserve (1)
HttpSys\HttpSysConfigurator.cs (1)
55
Marshal.
SizeOf
(typeof(HTTP_SERVICE_CONFIG_SSL_SET)));
UIAutomationClient (3)
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
310
length = Marshal.
SizeOf
(typeof(UnsafeNativeMethods.WINDOWPLACEMENT))
696
length = Marshal.
SizeOf
(typeof(UnsafeNativeMethods.WINDOWPLACEMENT))
810
length = Marshal.
SizeOf
(typeof(UnsafeNativeMethods.WINDOWPLACEMENT))
UIAutomationClientSideProviders (145)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (67)
408
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
415
new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszText),
423
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
437
return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.
SizeOf
(item.GetType()));
443
return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()));
449
return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()));
465
return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.
SizeOf
(item.GetType()), XSendMessage.ErrorValue.NoCheck);
472
bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), XSendMessage.ErrorValue.NoCheck);
484
bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), XSendMessage.ErrorValue.NoCheck);
505
new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.
SizeOf
(group.GetType()));
512
new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.
SizeOf
(group32.GetType()));
519
new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.
SizeOf
(group64.GetType()));
538
new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.
SizeOf
(group.GetType()));
549
new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.
SizeOf
(group32.GetType()));
560
new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.
SizeOf
(group64.GetType()));
583
new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.
SizeOf
(group.GetType()));
594
new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.
SizeOf
(group32.GetType()));
605
new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.
SizeOf
(group64.GetType()));
630
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader);
642
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader);
654
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader);
689
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), textAddress, size, true);
707
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), textAddress, size, true);
725
return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), textAddress, size, true);
751
return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.
SizeOf
(item.GetType()));
758
bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()));
771
bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()));
792
return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
799
new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszText),
807
return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
833
return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.
SizeOf
(item.GetType()));
840
bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()));
853
bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()));
874
return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
882
Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
889
return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
915
return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.
SizeOf
(item.GetType()));
922
bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()));
935
bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()));
956
return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.
SizeOf
(item.GetType()));
962
return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()));
968
return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()));
990
Marshal.
SizeOf
(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero))
999
Marshal.
SizeOf
(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero))
1008
Marshal.
SizeOf
(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
1027
return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
1035
Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
1042
return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
1068
return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.
SizeOf
(item.GetType()), ErrorValue.Zero);
1075
bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.
SizeOf
(item32.GetType()), ErrorValue.Zero);
1088
bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.
SizeOf
(item64.GetType()), ErrorValue.Zero);
1126
Marshal.
SizeOf
(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true);
1134
Marshal.
SizeOf
(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength,
1143
Marshal.
SizeOf
(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true);
1171
int cMem = Marshal.
SizeOf
(rectW32.GetType());
1979
cbSize = Marshal.
SizeOf
(typeof(LVGROUP_32));
1996
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP)),
2045
cbSize = Marshal.
SizeOf
(typeof(LVGROUP_V6_32));
2078
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)),
2128
cbSize = Marshal.
SizeOf
(typeof(LVGROUP_64));
2146
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP)),
2196
cbSize = Marshal.
SizeOf
(typeof(LVGROUP_V6_64));
2230
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)),
2532
cbSize = Marshal.
SizeOf
(typeof(TOOLINFO_32));
2547
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.TOOLINFO)),
2576
cbSize = Marshal.
SizeOf
(typeof(TOOLINFO_64));
2591
cbSize = Marshal.
SizeOf
(typeof(NativeMethods.TOOLINFO)),
MS\Internal\AutomationProxies\Misc.cs (5)
326
tool.Init(Marshal.
SizeOf
(typeof(NativeMethods.TOOLINFO)));
1078
gui.cbSize = Marshal.
SizeOf
(gui.GetType());
1178
ti.cbSize = Marshal.
SizeOf
(ti.GetType());
1194
ti.cbSize = Marshal.
SizeOf
(ti.GetType());
1903
tool.Init(Marshal.
SizeOf
(typeof(NativeMethods.TOOLINFO)));
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
236
altTabInfo.cbSize = (uint)Marshal.
SizeOf
(typeof(UnsafeNativeMethods.ALTTABINFO));
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
553
int cb = Marshal.
SizeOf
(typeof(NativeMethods.LOGFONT));
706
cbSize = System.Runtime.InteropServices.Marshal.
SizeOf
(typeof(NativeMethods.ScrollInfo)),
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
211
bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.
SizeOf
(HitTestInfo.GetType()));
395
return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.
SizeOf
(linkItem.GetType()));
492
bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.
SizeOf
(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1269
if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.
SizeOf
(itemRectangle.GetType())))
1420
result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.
SizeOf
(hitTestNative.GetType()));
1429
result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.
SizeOf
(hitTestNative.GetType()));
1493
if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.
SizeOf
(itemRectangle.GetType())))
1664
scrollBarInfo.cbSize = Marshal.
SizeOf
(scrollBarInfo.GetType());
1675
si.cbSize = Marshal.
SizeOf
(si.GetType ());
1792
if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.
SizeOf
(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (12)
96
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
106
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP)));
152
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
240
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
306
XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.
SizeOf
(hitTestNative.GetType()));
332
groupInfo.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
337
bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
424
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP)));
490
groupInfo.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
495
bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
504
groupInfo.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
606
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP)));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (5)
386
while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.
SizeOf
(ii.GetType())))
390
groupInfo.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
393
bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
703
new IntPtr(_groupID), new IntPtr(&rect), Marshal.
SizeOf
(rect.GetType()));
814
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType());
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (3)
77
XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPRECT, new IntPtr(0), new IntPtr(&rect), Marshal.
SizeOf
(rect.GetType()));
88
groupInfo.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
105
group.Init(Marshal.
SizeOf
(typeof(NativeMethods.LVGROUP_V6)));
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
133
if (XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETITEMINDEXRECT, new IntPtr(&ii), new IntPtr(&itemRectangle), Marshal.
SizeOf
(ii.GetType()), Marshal.
SizeOf
(itemRectangle.GetType())))
MS\Internal\AutomationProxies\WindowsListViewScroll.cs (1)
56
si.cbSize = Marshal.
SizeOf
(si.GetType ());
MS\Internal\AutomationProxies\WindowsMenu.cs (6)
504
mbi.cbSize = Marshal.
SizeOf
(mbi.GetType());
1886
menuItemInfo.cbSize = Marshal.
SizeOf
(menuItemInfo.GetType());
1901
menuItemInfo.cbSize = Marshal.
SizeOf
(menuItemInfo.GetType ());
1945
menuItemInfo.cbSize = Marshal.
SizeOf
(menuItemInfo.GetType());
2552
menuItemInfo.cbSize = Marshal.
SizeOf
(menuItemInfo.GetType());
2593
int readSize = Marshal.
SizeOf
(msaaMenuInfo.GetType());
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
206
return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.
SizeOf
(rbHitTestInfo.GetType()));
399
if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.
SizeOf
(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
435
if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.
SizeOf
(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsScroll.cs (6)
127
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType());
143
si.cbSize = Marshal.
SizeOf
(si.GetType ());
195
si.cbSize = Marshal.
SizeOf
(si.GetType ());
250
si.cbSize = Marshal.
SizeOf
(si.GetType ());
291
si.cbSize = Marshal.
SizeOf
(si.GetType ());
367
si.cbSize = Marshal.
SizeOf
(si.GetType ());
MS\Internal\AutomationProxies\WindowsScrollBar.cs (8)
135
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType ());
431
si.cbSize = Marshal.
SizeOf
(si.GetType ());
445
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType ());
519
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType ());
572
si.cbSize = Marshal.
SizeOf
(si.GetType ());
625
si.cbSize = Marshal.
SizeOf
(si.GetType ());
711
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType ());
726
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType());
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (3)
205
si.cbSize = Marshal.
SizeOf
(si.GetType ());
223
sbi.cbSize = Marshal.
SizeOf
(sbi.GetType ());
542
si.cbSize = Marshal.
SizeOf
(si.GetType ());
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
460
XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.
SizeOf
(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck);
472
XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.
SizeOf
(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
161
index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.HDM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.
SizeOf
(HitTestInfo.GetType()));
568
result = XSendMessage.XSend(_hwnd, NativeMethods.HDM_GETITEMRECT, new IntPtr(index), new IntPtr(&rectW32), Marshal.
SizeOf
(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
276
index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.
SizeOf
(hti.GetType()));
653
result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.
SizeOf
(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
1272
if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.
SizeOf
(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsTreeView.cs (3)
555
if (!XSendMessage.XSend(hwnd, NativeMethods.TVM_GETITEMRECT, partialDisplay, rectangle, Marshal.
SizeOf
(rc.GetType())))
935
if (Marshal.
SizeOf
(_hItem.GetType()) > sizeof(int))
1592
int readSize = Marshal.
SizeOf
(ent.GetType());
MS\Win32\NativeMethods.cs (1)
1486
internal static int comboboxInfoSize = Marshal.
SizeOf
(typeof(NativeMethods.COMBOBOXINFO));
UIAutomationTypes (12)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (7)
1525
return Marshal.
SizeOf
(typeof(MONITORINFOEX));
1538
return Marshal.
SizeOf
(typeof(TRACKMOUSEEVENT));
1593
return Marshal.
SizeOf
(typeof(NONCLIENTMETRICS));
1608
return Marshal.
SizeOf
(typeof(ICONMETRICS));
1738
return Marshal.
SizeOf
(typeof(MENUITEMINFO_T));
1785
return Marshal.
SizeOf
(typeof(OPENFILENAME_I));
1964
return Marshal.
SizeOf
(typeof(tagCONTROLINFO));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsOther.cs (5)
86
return Marshal.
SizeOf
(typeof(OSVERSIONINFOEX));
157
return Marshal.
SizeOf
(typeof(DOCHOSTUIINFO));
513
return Marshal.
SizeOf
(typeof(BITMAPINFO));
544
return Marshal.
SizeOf
(typeof(SECURITY_ATTRIBUTES));
1083
return Marshal.
SizeOf
(typeof(ANIMATIONINFO));