2232 references to Marshal
csc (3)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (1)
illink (5)
ILLink.RoslynAnalyzer (5)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Cryptography.Internal (6)
Microsoft.AspNetCore.DataProtection (5)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.HttpSys (26)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (3)
Microsoft.AspNetCore.Server.HttpSys.Tests (6)
Microsoft.AspNetCore.Server.IIS (19)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (6)
Microsoft.AspNetCore.Shared.Tests (6)
Microsoft.Build (22)
InprocTrackingNativeMethods.cs (12)
98Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
104Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
110Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
116Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
122Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
128Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
134Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
140Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
146Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
219Int32 hresult = Marshal.GetHRForLastWin32Error();
220Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
243return (DT)(Object)Marshal.GetDelegateForFunctionPointer(entryPoint, typeof(DT));
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (6)
Microsoft.Build.Framework (12)
Microsoft.Build.Tasks.CodeAnalysis (7)
Microsoft.Build.Tasks.Core (33)
Microsoft.Build.Tasks.UnitTests (10)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (4)
Microsoft.Build.Utilities.UnitTests (1)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (13)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.Scripting (15)
Microsoft.CodeAnalysis.Test.Utilities (8)
Win32Res.cs (7)
33throw new Win32Exception(Marshal.GetLastWin32Error());
38throw new Win32Exception(Marshal.GetLastWin32Error());
42throw new Win32Exception(Marshal.GetLastWin32Error());
50Marshal.Copy((IntPtr)(ptr.ToInt64() + offset), fullmanif, 0, length);
57Marshal.Copy(mfRsrc, ar, 0, 3);
164Marshal.Copy(versionRsrc, shortArray, 0, 1);
168Marshal.Copy(versionRsrc, entireResourceBytes, 0, entireResourceBytes.Length);
Microsoft.CodeAnalysis.UnitTests (9)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.RemoteExecutor.Tests (2)
Microsoft.DotNet.SignCheckLibrary (29)
Verification\AuthentiCode.cs (17)
23cbStruct = (uint)Marshal.SizeOf(typeof(WinTrustFileInfo)),
31cbStruct = (uint)Marshal.SizeOf(typeof(WinTrustData)),
39pFile = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(WinTrustFileInfo))),
46Marshal.StructureToPtr(fileInfo, data.pFile, false);
48IntPtr pGuid = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Guid)));
49IntPtr pData = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(WinTrustData)));
50Marshal.StructureToPtr(data, pData, true);
51Marshal.StructureToPtr(WinTrust.WINTRUST_ACTION_GENERIC_VERIFY_V2, pGuid, true);
55Marshal.FreeHGlobal(pGuid);
56Marshal.FreeHGlobal(pData);
113Marshal.StringToHGlobalUni(path),
124throw new Win32Exception(Marshal.GetLastWin32Error());
132throw new Win32Exception(Marshal.GetLastWin32Error());
138throw new Win32Exception(Marshal.GetLastWin32Error());
Microsoft.Extensions.Diagnostics.ResourceMonitoring (18)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (14)
Windows\Tcp6TableInfoTests.cs (8)
123Marshal.StructureToPtr(fakeTcp6Table, pTcp6Table, false);
124var offset = Marshal.OffsetOf<MIB_TCP6TABLE>(nameof(MIB_TCP6TABLE.Table)).ToInt32();
129Marshal.StructureToPtr(fakeRows[i], fakePtr, false);
130fakePtr = IntPtr.Add(fakePtr, Marshal.SizeOf<MIB_TCP6ROW>());
215Marshal.StructureToPtr(fakeTcp6Table, pTcp6Table, false);
216var offset = Marshal.OffsetOf<MIB_TCP6TABLE>(nameof(MIB_TCP6TABLE.Table)).ToInt32();
221Marshal.StructureToPtr(fakeRows[i], fakePtr, false);
222fakePtr = IntPtr.Add(fakePtr, Marshal.SizeOf<MIB_TCP6ROW>());
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.Core (3)
Microsoft.ML.Data (10)
Microsoft.ML.FastTree (1)
Microsoft.ML.LightGbm (2)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.Recommender (2)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Vision (1)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualBasic.Forms (4)
Microsoft.VisualBasic.Forms.Tests (1)
Microsoft.VisualStudio.LanguageServices (109)
Microsoft.VisualStudio.LanguageServices.CSharp (7)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (11)
MockVsFileChangeEx.vb (7)
149Marshal.ThrowExceptionForHR(AdviseFileChange(filename, CType(filter, UInteger), sink, cookie))
159Marshal.ThrowExceptionForHR(AdviseFileChange(filename, CType(filter, UInteger), sink, cookie))
172Marshal.ThrowExceptionForHR(UnadviseFileChange(cookie))
185Marshal.ThrowExceptionForHR(UnadviseFileChange(cookie))
196Marshal.ThrowExceptionForHR(AdviseDirChange(directory, If(watchSubdirectories, 1, 0), sink, cookie))
204Marshal.ThrowExceptionForHR(UnadviseFileChange(cookie))
217Marshal.ThrowExceptionForHR(UnadviseFileChange(cookie))
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
MSBuild (4)
MSBuildTaskHost (14)
mscorlib (1)
netstandard (1)
PrepareTests (2)
PresentationCore (183)
System\Windows\dataobject.cs (29)
563Marshal.ThrowExceptionForHR(NativeMethods.E_NOTIMPL);
663medium.unionmember = Marshal.GetComInterfaceForObject(istream, typeof(IStream));
664Marshal.ReleaseComObject(istream);
670Marshal.Release(medium.unionmember);
686Marshal.ThrowExceptionForHR(hr);
702Marshal.ThrowExceptionForHR(DV_E_TYMED);
708Marshal.ThrowExceptionForHR(hr);
761Marshal.ThrowExceptionForHR(NativeMethods.E_NOTIMPL);
969int win32Error = Marshal.GetLastWin32Error();
986Marshal.ThrowExceptionForHR(hr);
998int win32Error = Marshal.GetLastWin32Error();
1011int win32Error = Marshal.GetLastWin32Error();
1026int win32Error = Marshal.GetLastWin32Error();
1041int win32Error = Marshal.GetLastWin32Error();
1055int win32Error = Marshal.GetLastWin32Error();
1148int win32Error = Marshal.GetLastWin32Error();
1381int win32Error = Marshal.GetLastWin32Error(); // Dance around FxCop
1548IStream istream = (IStream)( Marshal.GetObjectForIUnknown(medium.unionmember) );
1578Marshal.ReleaseComObject(istream);
1722Marshal.Copy(bytes, 0, ptr, NativeMethods.IntPtrToInt32(size));
1803if (Marshal.SystemDefaultCharSize == 1)
1839Marshal.Copy(structData, 0, currentPtr, structData.Length);
1957Marshal.Copy(new byte[] { 0 }, 0, (IntPtr)((long)ptr + pinvokeSize), 1);
2007Marshal.Copy(new byte[] { 0 }, 0, (IntPtr)((long)pointerUtf8 + utf8ByteCount), 1);
2480Marshal.FreeCoTaskMem(formatetc[formatetcIndex].ptd);
2662pStream = (UnsafeNativeMethods.IStream)Marshal.GetObjectForIUnknown(medium.unionmember);
2951Marshal.Copy(ptr, bytes, 0, size);
3157byte endByte = Marshal.ReadByte((IntPtr)((long)pointerUtf8 + utf8ByteCount));
3171Marshal.Copy(pointerUtf8, bytes, 0, utf8ByteCount);
System\Windows\Media\Imaging\PropVariant.cs (40)
133long size = Marshal.SizeOf(type) * length;
138destPtr = Marshal.AllocCoTaskMem((int)size);
155Marshal.FreeCoTaskMem(destPtr);
185destPtr = Marshal.AllocCoTaskMem((int)size);
191pString = Marshal.StringToCoTaskMemAnsi(value[index]);
195pString = Marshal.StringToCoTaskMemUni(value[index]);
197Marshal.WriteIntPtr(destPtr, (int)index*sizeIntPtr, pString);
210IntPtr pString = Marshal.ReadIntPtr(destPtr, i*sizeIntPtr);
211Marshal.FreeCoTaskMem(pString);
214Marshal.FreeCoTaskMem(destPtr);
241pszVal = Marshal.StringToCoTaskMemAnsi(new String(value as char[]));
320pwszVal = Marshal.StringToCoTaskMemUni(value as String);
340pszVal = Marshal.StringToCoTaskMemAnsi(new String(stackalloc char[] { (char)value }));
386pclsidVal = Marshal.AllocCoTaskMem(guid.Length);
387Marshal.Copy(guid, 0, pclsidVal, guid.Length);
448UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
462Marshal.FreeCoTaskMem(Marshal.ReadIntPtr(strPtr, (int) (i*sizeIntPtr)));
466Marshal.FreeCoTaskMem(ca.pElems);
473Marshal.FreeCoTaskMem(pwszVal);
499array[i] = (sbyte) Marshal.ReadByte(ca.pElems, i);
506Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
513Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
521array[i] = (ushort) Marshal.ReadInt16(ca.pElems, i*sizeof(ushort));
528Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
536array[i] = (uint) Marshal.ReadInt32(ca.pElems, i*sizeof(uint));
543Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
551array[i] = (UInt64) Marshal.ReadInt64(ca.pElems, i*sizeof(UInt64));
558Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
565Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
573array[i] = (bool) (Marshal.ReadInt16(ca.pElems, i*sizeof(ushort)) != 0);
583Marshal.Copy(ca.pElems, guid, i*16, 16);
600IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
601array[i] = Marshal.PtrToStringAnsi(ptr);
617IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
618array[i] = Marshal.PtrToStringUni(ptr);
673Marshal.Copy(pclsidVal, guid, 0, 16);
677return Marshal.PtrToStringAnsi(pszVal);
680return Marshal.PtrToStringUni(pwszVal);
685Marshal.Copy(ca.pElems, blob, 0, (int)ca.cElems);
PresentationFramework (350)
MS\Internal\Printing\PrintDlgExMarshaler.cs (37)
236NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
244NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
258NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<NativeMethods.PRINTPAGERANGE>(pageRangePtr);
277NativeMethods.DEVNAMES devNames = Marshal.PtrToStructure<NativeMethods.DEVNAMES>(pDevNames);
278int devNamesOffset = checked(devNames.wDeviceOffset * Marshal.SystemDefaultCharSize);
279printerName = Marshal.PtrToStringAuto(pDevNames + devNamesOffset);
373NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode);
375Marshal.Copy(pDevMode, devModeData, 0, devModeData.Length);
419NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
424NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
494pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE)));
500Marshal.StructureToPtr(range, pdex.lpPageRanges, false);
533int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32));
534unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize);
535Marshal.StructureToPtr(pdex, unmanagedBuffer, false);
573pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE)));
579Marshal.StructureToPtr(range, pdex.lpPageRanges, false);
612int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64));
613unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize);
614Marshal.StructureToPtr(pdex, unmanagedBuffer, false);
659NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
666NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
687Marshal.FreeHGlobal(unmanagedBuffer);
726int cbDevNames = checked(((printer.Length + 3) * Marshal.SystemDefaultCharSize) +
727Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)));
728hDevNames = Marshal.AllocHGlobal(cbDevNames);
730ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES));
740devNames.wDeviceOffset = (ushort)(baseOffset / Marshal.SystemDefaultCharSize);
744Marshal.StructureToPtr(devNames, hDevNames, false);
754checked((IntPtr)((long)offsetName + (printer.Length * Marshal.SystemDefaultCharSize)));
764byte[] nulls = new byte[3 * Marshal.SystemDefaultCharSize];
766Marshal.Copy(
771Marshal.Copy(
819IntPtr hDevMode = Marshal.AllocHGlobal(devModeData.Length);
820Marshal.Copy(devModeData, 0, hDevMode, devModeData.Length);
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (14)
459var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
460Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
631var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 17);
632Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1143var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
1144Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1295var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
1296Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1483var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
1484Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1575Invoke = Marshal.GetFunctionPointerForDelegate(AbiInvokeDelegate)
1577var nativeVftbl = ComWrappersSupport.AllocateVtableMemory(typeof(WordSegmentsTokenizingHandler), Marshal.SizeOf<global::WinRT.Interop.IDelegateVftbl>());
1578Marshal.StructureToPtr(AbiToProjectionVftable, nativeVftbl, false);
1608var abiInvoke = Marshal.GetDelegateForFunctionPointer<Abi_Invoke>(_nativeDelegate.Vftbl.Invoke);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (12)
234var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
235Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
418var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
419Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
492var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
493Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
573var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
574Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
656var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 2);
657Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
772var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
773Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (38)
107var nativeVftbl = (IntPtr*)Marshal.AllocCoTaskMem(Marshal.SizeOf<Vftbl>());
108Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
134source = Marshal.StringToBSTR(_source);
138Marshal.FreeBSTR(source);
152description = Marshal.StringToBSTR(_description);
156Marshal.FreeBSTR(description);
170helpFile = Marshal.StringToBSTR(_helpFile);
174Marshal.FreeBSTR(helpFile);
188helpFileContent = Marshal.StringToBSTR(_helpFileContent);
192Marshal.FreeBSTR(helpFileContent);
217Marshal.ThrowExceptionForHR(_obj.Vftbl.GetGuid_0(ThisPtr, out __return_value__));
226Marshal.ThrowExceptionForHR(_obj.Vftbl.GetSource_1(ThisPtr, out __retval));
227return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
231Marshal.FreeBSTR(__retval);
240Marshal.ThrowExceptionForHR(_obj.Vftbl.GetDescription_2(ThisPtr, out __retval));
241return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
245Marshal.FreeBSTR(__retval);
254Marshal.ThrowExceptionForHR(_obj.Vftbl.GetHelpFile_3(ThisPtr, out __retval));
255return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
259Marshal.FreeBSTR(__retval);
268Marshal.ThrowExceptionForHR(_obj.Vftbl.GetHelpFileContent_4(ThisPtr, out __retval));
269return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
273Marshal.FreeBSTR(__retval);
309Marshal.ThrowExceptionForHR(_obj.Vftbl.GetLanguageException_0(ThisPtr, out __return_value__));
341var nativeVftbl = (IntPtr*)Marshal.AllocCoTaskMem(Marshal.SizeOf<Vftbl>());
342Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
419Marshal.ThrowExceptionForHR(_obj.Vftbl.GetErrorDetails_0(ThisPtr, out _description, out error, out _restrictedDescription, out _capabilitySid));
420description = _description != IntPtr.Zero ? Marshal.PtrToStringBSTR(_description) : string.Empty;
421restrictedDescription = _restrictedDescription != IntPtr.Zero ? Marshal.PtrToStringBSTR(_restrictedDescription) : string.Empty;
422capabilitySid = _capabilitySid != IntPtr.Zero ? Marshal.PtrToStringBSTR(_capabilitySid) : string.Empty;
426Marshal.FreeBSTR(_description);
427Marshal.FreeBSTR(_restrictedDescription);
428Marshal.FreeBSTR(_capabilitySid);
437Marshal.ThrowExceptionForHR(_obj.Vftbl.GetReference_1(ThisPtr, out __retval));
438return __retval != IntPtr.Zero ? Marshal.PtrToStringBSTR(__retval) : string.Empty;
442Marshal.FreeBSTR(__retval);
PresentationUI (13)
ReachFramework (27)
Replay (2)
Roslyn.Test.PdbUtilities (4)
System.ComponentModel.TypeConverter (2)
System.Console (5)
System.Data.Odbc (27)
Common\System\Data\ProviderBase\DbBuffer.cs (22)
71value = Marshal.PtrToStringUni(ptr);
99value = Marshal.PtrToStringUni(ptr, length);
125value = Marshal.ReadByte(ptr, offset);
158Marshal.Copy(ptr, destination, startIndex, length);
191Marshal.Copy(ptr, destination, startIndex, length);
223value = Marshal.ReadInt16(ptr, offset);
250Marshal.Copy(ptr, destination, startIndex, length);
275value = Marshal.ReadInt32(ptr, offset);
302Marshal.Copy(ptr, destination, startIndex, length);
327value = Marshal.ReadInt64(ptr, offset);
353value = Marshal.ReadIntPtr(ptr, offset);
387ValidateCheck(offset, Marshal.SizeOf(structure.GetType()));
397Marshal.StructureToPtr(structure, ptr, false/*fDeleteOld*/);
421Marshal.WriteByte(ptr, offset, value);
447Marshal.Copy(source, startIndex, ptr, length);
473Marshal.Copy(source, startIndex, ptr, length);
502Marshal.WriteInt16(ptr, offset, value);
528Marshal.Copy(source, startIndex, ptr, length);
552Marshal.WriteInt32(ptr, offset, value);
578Marshal.Copy(source, startIndex, ptr, length);
602Marshal.WriteInt64(ptr, offset, value);
626Marshal.WriteIntPtr(ptr, offset, value);
System.Diagnostics.FileVersionInfo (3)
System.Diagnostics.Process (12)
System.Drawing.Common.Tests (54)
mono\System.Drawing\BitmapTests.cs (25)
220Marshal.Copy(bd.Scan0, data, 0, size);
421pixel_data[dest_offset + x] = Marshal.ReadByte(src_ptr, x);
522Marshal.Copy((nint)cur, btv, 0, 1);
529Marshal.Copy(btv, 0, (nint)cur, 1);
683pixel_value = Marshal.ReadByte(data.Scan0, 0);
684pixel_value |= Marshal.ReadByte(data.Scan0, 1) << 8;
685pixel_value |= Marshal.ReadByte(data.Scan0, 2) << 16;
686pixel_value |= Marshal.ReadByte(data.Scan0, 3) << 24;
694Marshal.WriteByte(data.Scan0, 0, blue.B);
695Marshal.WriteByte(data.Scan0, 1, blue.G);
696Marshal.WriteByte(data.Scan0, 2, blue.R);
697Marshal.WriteByte(data.Scan0, 3, blue.A);
713Marshal.WriteByte(data.Scan0, 0, blue.B);
714Marshal.WriteByte(data.Scan0, 1, blue.G);
715Marshal.WriteByte(data.Scan0, 2, blue.R);
716Marshal.WriteByte(data.Scan0, 3, blue.A);
736byte b = Marshal.ReadByte(data.Scan0, 0);
737byte g = Marshal.ReadByte(data.Scan0, 1);
738byte r = Marshal.ReadByte(data.Scan0, 2);
742Marshal.WriteByte(data.Scan0, 0, blue.B);
743Marshal.WriteByte(data.Scan0, 1, blue.G);
744Marshal.WriteByte(data.Scan0, 2, blue.R);
757Marshal.WriteByte(data.Scan0, 0, blue.B);
758Marshal.WriteByte(data.Scan0, 1, blue.G);
759Marshal.WriteByte(data.Scan0, 2, blue.R);
System\Drawing\BitmapTests.cs (22)
1352Marshal.Copy(bitmapData.Scan0, data, 0, size);
1477int pixelValue = Marshal.ReadByte(data.Scan0, 0);
1478pixelValue |= Marshal.ReadByte(data.Scan0, 1) << 8;
1479pixelValue |= Marshal.ReadByte(data.Scan0, 2) << 16;
1480pixelValue |= Marshal.ReadByte(data.Scan0, 3) << 24;
1488Marshal.WriteByte(data.Scan0, 0, blue.B);
1489Marshal.WriteByte(data.Scan0, 1, blue.G);
1490Marshal.WriteByte(data.Scan0, 2, blue.R);
1491Marshal.WriteByte(data.Scan0, 3, blue.A);
1507Marshal.WriteByte(data.Scan0, 0, blue.B);
1508Marshal.WriteByte(data.Scan0, 1, blue.G);
1509Marshal.WriteByte(data.Scan0, 2, blue.R);
1510Marshal.WriteByte(data.Scan0, 3, blue.A);
1530byte b = Marshal.ReadByte(data.Scan0, 0);
1531byte g = Marshal.ReadByte(data.Scan0, 1);
1532byte r = Marshal.ReadByte(data.Scan0, 2);
1535Marshal.WriteByte(data.Scan0, 0, blue.B);
1536Marshal.WriteByte(data.Scan0, 1, blue.G);
1537Marshal.WriteByte(data.Scan0, 2, blue.R);
1550Marshal.WriteByte(data.Scan0, 0, blue.B);
1551Marshal.WriteByte(data.Scan0, 1, blue.G);
1552Marshal.WriteByte(data.Scan0, 2, blue.R);
System.Formats.Tar (4)
System.IO.Compression (1)
System.IO.Compression.ZipFile (3)
System.IO.FileSystem.DriveInfo (5)
System.IO.FileSystem.Watcher (3)
System.IO.MemoryMappedFiles (3)
System.IO.Pipes (5)
System.IO.Ports (4)
System.Net.HttpListener (1)
System.Net.NameResolution (8)
System.Net.NetworkInformation (9)
System.Net.Ping (6)
System.Net.Primitives (9)
System.Net.Quic (15)
System.Net.Security (18)
System.Net.Sockets (7)
System.Net.WebSockets (2)
System.Private.CoreLib (169)
src\System\StubHelpers.cs (32)
23byte[] buffer = new byte[checked((str.Length + 1) * Marshal.SystemMaxDBCSCharSize)];
26cbLength = Marshal.StringToAnsiString(str, bufferPtr, buffer.Length, fBestFit, fThrowOnUnmappableChar);
33int cbAllocLength = (1 + 1) * Marshal.SystemMaxDBCSCharSize;
37int cbLength = Marshal.StringToAnsiString(managedChar.ToString(), bufferPtr, cbAllocLength, fBestFit, fThrowOnUnmappableChar);
63if (pbNativeBuffer != null || Marshal.SystemMaxDBCSCharSize == 1)
69nb = checked((strManaged.Length + 1) * Marshal.SystemMaxDBCSCharSize + 1);
77pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(nb);
83nb = Marshal.StringToAnsiString(strManaged, pbNativeBuffer, nb,
88Marshal.FreeCoTaskMem((IntPtr)pbNativeBuffer);
97pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(2);
110pbNativeBuffer = (byte*)Marshal.AllocCoTaskMem(nb + 2);
270ptrToFirstChar = (byte*)Marshal.AllocBSTRByteLen(lengthInBytes);
295uint length = Marshal.SysStringByteLen(bstr);
333Marshal.FreeBSTR(pNative);
351int nbytes = checked(sizeof(uint) + ((cch + 1) * Marshal.SystemMaxDBCSCharSize));
353pNative = (byte*)Marshal.AllocCoTaskMem(nbytes);
392Marshal.FreeCoTaskMem(pNative - sizeof(uint));
415IntPtr bstr = Marshal.AllocBSTRByteLen(length);
441Marshal.FreeBSTR(pNative);
653Marshal.FreeCoTaskMem(nativeHome);
1002pNativeHome = Marshal.AllocCoTaskMem(allocSize);
1045int allocSize = checked((pManagedHomeCapacity * Marshal.SystemMaxDBCSCharSize) + 4);
1046pNativeHome = Marshal.AllocCoTaskMem(allocSize);
1055int length = Marshal.StringToAnsiString(pManagedHome.ToString(),
1070pNativeHome = Marshal.AllocCoTaskMem(allocSize);
1100int allocSize = Marshal.SizeOfHelper((RuntimeType)pManagedHome.GetType(), false);
1101IntPtr pNativeHome = Marshal.AllocCoTaskMem(allocSize);
1223Marshal.DestroyStructure(pNativeHome, layoutType);
1225Marshal.FreeCoTaskMem(pNativeHome);
1517bool success = Marshal.TryGetStructMarshalStub((IntPtr)pMT, &structMarshalStub, &size);
1536bool success = Marshal.TryGetStructMarshalStub((IntPtr)pMT, &structMarshalStub, &size);
1555bool success = Marshal.TryGetStructMarshalStub((IntPtr)pMT, &structMarshalStub, &size);
System.Private.Windows.Core (25)
System.Private.Windows.GdiPlus (3)
System.Reflection.Metadata (5)
System.Runtime.InteropServices (32)
System.Security.Cryptography (18)
System.Security.Cryptography.ProtectedData (5)
System.Text.Encoding.CodePages (2)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (73)
System.Windows.Forms.Design (6)
System.Windows.Forms.Interop.Tests (4)
System.Windows.Forms.Primitives (20)
System.Windows.Forms.Primitives.Tests (149)
System.Windows.Forms.Primitives.TestUtilities (5)
System.Windows.Forms.Tests (33)
System.Windows.Forms.UI.IntegrationTests (18)
UIAutomationClient (59)
UIAutomationClientSideProviders (212)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (67)
409return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
416new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
424return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
438return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()));
444return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
450return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
466return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck);
473bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck);
485bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck);
506new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType()));
513new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
520new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
539new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
550new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
561new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
584new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
595new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
606new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
631return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader);
643return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader);
655return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader);
690return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true);
708return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true);
726return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true);
752return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
759bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
772bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
793return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
800new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
808return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
834return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
841bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
854bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
875return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
883Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
890return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
916return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
923bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
936bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
957return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()));
963return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
969return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
991Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero))
1000Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero))
1009Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
1028return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
1036Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
1043return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
1069return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero);
1076bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero);
1089bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero);
1127Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true);
1135Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength,
1144Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true);
1172int cMem = Marshal.SizeOf(rectW32.GetType());
1980cbSize = Marshal.SizeOf(typeof(LVGROUP_32));
1997cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)),
2046cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_32));
2079cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)),
2129cbSize = Marshal.SizeOf(typeof(LVGROUP_64));
2147cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)),
2197cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_64));
2231cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)),
2533cbSize = Marshal.SizeOf(typeof(TOOLINFO_32));
2548cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)),
2577cbSize = Marshal.SizeOf(typeof(TOOLINFO_64));
2592cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)),
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
212bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
396return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType()));
493bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1270if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1421result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1430result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1494if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1667scrollBarInfo.cbSize = Marshal.SizeOf(scrollBarInfo.GetType());
1678si.cbSize = Marshal.SizeOf (si.GetType ());
1795if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (12)
97group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
107group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
153group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
241group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
307XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
333groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
338bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
425group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
491groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
496bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
505groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
607group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (5)
387while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType())))
391groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
394bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
704new IntPtr(_groupID), new IntPtr(&rect), Marshal.SizeOf(rect.GetType()));
815sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
207return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType()));
400if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
436if (XSendMessage.XSend(_hwnd, NativeMethods.RB_GETBANDINFOA, new IntPtr(_item), new IntPtr(&rebarBandInfo), Marshal.SizeOf(rebarBandInfo.GetType()), XSendMessage.ErrorValue.Zero))
MS\Internal\AutomationProxies\WindowsSlider.cs (2)
461XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck);
473XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
277index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType()));
654result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
1273if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
UIAutomationProvider (1)
UIAutomationTypes (59)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (35)
1526return Marshal.SizeOf(typeof(MONITORINFOEX));
1539return Marshal.SizeOf(typeof(TRACKMOUSEEVENT));
1594return Marshal.SizeOf(typeof(NONCLIENTMETRICS));
1609return Marshal.SizeOf(typeof(ICONMETRICS));
1739return Marshal.SizeOf(typeof(MENUITEMINFO_T));
1786return Marshal.SizeOf(typeof(OPENFILENAME_I));
1965return Marshal.SizeOf(typeof(tagCONTROLINFO));
1992Marshal.Release(this.data1);
2026IntPtr mem = Marshal.AllocCoTaskMem(16);
2027Marshal.WriteInt16(mem, vt);
2028Marshal.WriteInt16(mem, 2, reserved1);
2029Marshal.WriteInt16(mem, 4, reserved2);
2030Marshal.WriteInt16(mem, 6, reserved3);
2031Marshal.WriteInt32(mem, 8, (int) data1);
2032Marshal.WriteInt32(mem, 12, (int) data2);
2050val = (IntPtr) Marshal.ReadByte(val);
2056val = (IntPtr) Marshal.ReadByte(val);
2063val = (IntPtr) Marshal.ReadInt16(val);
2069val = (IntPtr) Marshal.ReadInt16(val);
2076val = (IntPtr) Marshal.ReadInt32(val);
2083val = (IntPtr) Marshal.ReadInt32(val);
2090longVal = Marshal.ReadInt64(val);
2124return Marshal.PtrToStringUni(val);
2127return Marshal.PtrToStringAnsi(val);
2132return Marshal.GetObjectForIUnknown(val);
2146VARIANT varStruct = Marshal.PtrToStructure<VARIANT>(val);
2150Guid guid = Marshal.PtrToStructure<Guid>(val);
2184return Marshal.ReadIntPtr(value);
2306if (Marshal.SystemDefaultCharSize == 1)
2337IntPtr result = Marshal.AllocCoTaskMem(buffer.Length);
2338Marshal.Copy(buffer, 0, result, buffer.Length);
2361Marshal.Copy(ptr, buffer, 0, buffer.Length);
2395IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2);
2396Marshal.Copy(buffer, 0, result, buffer.Length);
2418Marshal.Copy(ptr, buffer, 0, buffer.Length);
vbc (3)
VBCSCompiler (4)
WindowsFormsIntegration (1)
WinFormsControlsTest (1)
xunit.console (2)