2183 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 (30)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
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 (21)
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 (13)
Microsoft.Build.Tasks.CodeAnalysis (7)
Microsoft.Build.Tasks.Core (32)
Microsoft.Build.Tasks.UnitTests (10)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (3)
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 (3)
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 (2)
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 (2)
MSBuildTaskHost (14)
mscorlib (1)
netstandard (1)
PrepareTests (2)
PresentationCore (151)
System\Windows\Media\Imaging\PropVariant.cs (40)
132long size = Marshal.SizeOf(type) * length;
137destPtr = Marshal.AllocCoTaskMem((int)size);
154Marshal.FreeCoTaskMem(destPtr);
184destPtr = Marshal.AllocCoTaskMem((int)size);
190pString = Marshal.StringToCoTaskMemAnsi(value[index]);
194pString = Marshal.StringToCoTaskMemUni(value[index]);
196Marshal.WriteIntPtr(destPtr, (int)index*sizeIntPtr, pString);
209IntPtr pString = Marshal.ReadIntPtr(destPtr, i*sizeIntPtr);
210Marshal.FreeCoTaskMem(pString);
213Marshal.FreeCoTaskMem(destPtr);
240pszVal = Marshal.StringToCoTaskMemAnsi(new String(value as char[]));
319pwszVal = Marshal.StringToCoTaskMemUni(value as String);
339pszVal = Marshal.StringToCoTaskMemAnsi(new String(stackalloc char[] { (char)value }));
385pclsidVal = Marshal.AllocCoTaskMem(guid.Length);
386Marshal.Copy(guid, 0, pclsidVal, guid.Length);
447UnsafeNativeMethods.MILUnknown.Release(Marshal.ReadIntPtr(punkPtr, (int) (i*sizeIntPtr)));
461Marshal.FreeCoTaskMem(Marshal.ReadIntPtr(strPtr, (int) (i*sizeIntPtr)));
465Marshal.FreeCoTaskMem(ca.pElems);
472Marshal.FreeCoTaskMem(pwszVal);
498array[i] = (sbyte) Marshal.ReadByte(ca.pElems, i);
505Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
512Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
520array[i] = (ushort) Marshal.ReadInt16(ca.pElems, i*sizeof(ushort));
527Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
535array[i] = (uint) Marshal.ReadInt32(ca.pElems, i*sizeof(uint));
542Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
550array[i] = (UInt64) Marshal.ReadInt64(ca.pElems, i*sizeof(UInt64));
557Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
564Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems);
572array[i] = (bool) (Marshal.ReadInt16(ca.pElems, i*sizeof(ushort)) != 0);
582Marshal.Copy(ca.pElems, guid, i*16, 16);
599IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
600array[i] = Marshal.PtrToStringAnsi(ptr);
616IntPtr ptr = Marshal.ReadIntPtr(ca.pElems, i*sizeIntPtr);
617array[i] = Marshal.PtrToStringUni(ptr);
672Marshal.Copy(pclsidVal, guid, 0, 16);
676return Marshal.PtrToStringAnsi(pszVal);
679return Marshal.PtrToStringUni(pwszVal);
684Marshal.Copy(ca.pElems, blob, 0, (int)ca.cElems);
PresentationFramework (350)
MS\Internal\Printing\PrintDlgExMarshaler.cs (37)
235NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
243NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
257NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<NativeMethods.PRINTPAGERANGE>(pageRangePtr);
276NativeMethods.DEVNAMES devNames = Marshal.PtrToStructure<NativeMethods.DEVNAMES>(pDevNames);
277int devNamesOffset = checked(devNames.wDeviceOffset * Marshal.SystemDefaultCharSize);
278printerName = Marshal.PtrToStringAuto(pDevNames + devNamesOffset);
369NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode);
371Marshal.Copy(pDevMode, devModeData, 0, devModeData.Length);
415NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
420NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
490pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE)));
496Marshal.StructureToPtr(range, pdex.lpPageRanges, false);
529int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32));
530unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize);
531Marshal.StructureToPtr(pdex, unmanagedBuffer, false);
569pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE)));
575Marshal.StructureToPtr(range, pdex.lpPageRanges, false);
608int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64));
609unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize);
610Marshal.StructureToPtr(pdex, unmanagedBuffer, false);
655NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer);
662NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer);
683Marshal.FreeHGlobal(unmanagedBuffer);
722int cbDevNames = checked(((printer.Length + 3) * Marshal.SystemDefaultCharSize) +
723Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)));
724hDevNames = Marshal.AllocHGlobal(cbDevNames);
726ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES));
736devNames.wDeviceOffset = (ushort)(baseOffset / Marshal.SystemDefaultCharSize);
740Marshal.StructureToPtr(devNames, hDevNames, false);
750checked((IntPtr)((long)offsetName + (printer.Length * Marshal.SystemDefaultCharSize)));
760byte[] nulls = new byte[3 * Marshal.SystemDefaultCharSize];
762Marshal.Copy(
767Marshal.Copy(
815IntPtr hDevMode = Marshal.AllocHGlobal(devModeData.Length);
816Marshal.Copy(devModeData, 0, hDevMode, devModeData.Length);
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (14)
458var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
459Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
630var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 17);
631Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1142var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
1143Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1294var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
1295Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1482var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
1483Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
1574Invoke = Marshal.GetFunctionPointerForDelegate(AbiInvokeDelegate)
1576var nativeVftbl = ComWrappersSupport.AllocateVtableMemory(typeof(WordSegmentsTokenizingHandler), Marshal.SizeOf<global::WinRT.Interop.IDelegateVftbl>());
1577Marshal.StructureToPtr(AbiToProjectionVftable, nativeVftbl, false);
1607var abiInvoke = Marshal.GetDelegateForFunctionPointer<Abi_Invoke>(_nativeDelegate.Vftbl.Invoke);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (12)
233var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
234Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
417var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
418Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
491var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
492Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
572var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
573Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
655var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 2);
656Marshal.StructureToPtr(AbiToProjectionVftable, (IntPtr)nativeVftbl, false);
771var nativeVftbl = (IntPtr*)ComWrappersSupport.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
772Marshal.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 (172)
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 (27)
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)
TlsFeaturesObserve (4)
UIAutomationClient (59)
UIAutomationClientSideProviders (212)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (67)
408return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
415new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
423return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
437return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()));
443return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
449return XSend(hwnd, NativeMethods.LVM_SETITEMSTATE, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
465return XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()), XSendMessage.ErrorValue.NoCheck);
472bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), XSendMessage.ErrorValue.NoCheck);
484bool result = XSend(hwnd, NativeMethods.LVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), XSendMessage.ErrorValue.NoCheck);
505new IntPtr(group.iGroupID), new IntPtr(&group), Marshal.SizeOf(group.GetType()));
512new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
519new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
538new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
549new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
560new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
583new IntPtr(group.iGroupID), new IntPtr(pGroup), Marshal.SizeOf(group.GetType()));
594new IntPtr(group.iGroupID), new IntPtr(&group32), Marshal.SizeOf(group32.GetType()));
605new IntPtr(group.iGroupID), new IntPtr(&group64), Marshal.SizeOf(group64.GetType()));
630return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszHeader), item.cchHeader);
642return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszHeader), item32.cchHeader);
654return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszHeader), item64.cchHeader);
689return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item.iGroupID), new IntPtr(&item), Marshal.SizeOf(item.GetType()), textAddress, size, true);
707return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item32.iGroupID), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), textAddress, size, true);
725return GetTextWithinStructure(hwnd, NativeMethods.LVM_GETGROUPINFO, new IntPtr(item64.iGroupID), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), textAddress, size, true);
751return XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
758bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
771bool result = XSend(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
792return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
799new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText),
807return GetTextWithinStructure(hwnd, NativeMethods.TCM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
833return XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
840bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
853bool result = XSend(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
874return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
882Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
889return GetTextWithinStructure(hwnd, NativeMethods.HDM_GETITEMW, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
915return XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(pItem), Marshal.SizeOf(item.GetType()));
922bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
935bool result = XSend(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
956return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()));
962return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item32), Marshal.SizeOf(item32.GetType()));
968return XSend(hwnd, NativeMethods.TVM_SETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()));
990Marshal.SizeOf(hitTestInfo.GetType()), XSendMessage.ErrorValue.Zero))
999Marshal.SizeOf(hitTestInfo32.GetType()), XSendMessage.ErrorValue.Zero))
1008Marshal.SizeOf(hitTestInfo64.GetType()), XSendMessage.ErrorValue.Zero))
1027return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item), Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), item.cchTextMax);
1035Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), item32.cchTextMax,
1042return GetTextWithinStructure(hwnd, NativeMethods.TVM_GETITEMW, IntPtr.Zero, new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), item64.cchTextMax);
1068return XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(pItem), Marshal.SizeOf(item.GetType()), ErrorValue.Zero);
1075bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item32), Marshal.SizeOf(item32.GetType()), ErrorValue.Zero);
1088bool result = XSend(hwnd, NativeMethods.TB_GETBUTTON, new IntPtr(index), new IntPtr(&item64), Marshal.SizeOf(item64.GetType()), ErrorValue.Zero);
1126Marshal.SizeOf(item.GetType()), new IntPtr(&item.pszText), maxTextLength, true);
1134Marshal.SizeOf(item32.GetType()), new IntPtr(&item32.pszText), maxTextLength,
1143Marshal.SizeOf(item64.GetType()), new IntPtr(&item64.pszText), maxTextLength, true);
1171int cMem = Marshal.SizeOf(rectW32.GetType());
1979cbSize = Marshal.SizeOf(typeof(LVGROUP_32));
1996cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)),
2045cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_32));
2078cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)),
2128cbSize = Marshal.SizeOf(typeof(LVGROUP_64));
2146cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP)),
2196cbSize = Marshal.SizeOf(typeof(LVGROUP_V6_64));
2230cbSize = Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)),
2532cbSize = Marshal.SizeOf(typeof(TOOLINFO_32));
2547cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)),
2576cbSize = Marshal.SizeOf(typeof(TOOLINFO_64));
2591cbSize = Marshal.SizeOf(typeof(NativeMethods.TOOLINFO)),
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
211bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
395return XSendMessage.XSend(_hwnd, NativeMethods.LM_SETITEM, IntPtr.Zero, new IntPtr(&linkItem), Marshal.SizeOf(linkItem.GetType()));
492bGetItemResult = XSendMessage.XSend(_hwnd, NativeMethods.LM_HITTEST, IntPtr.Zero, new IntPtr(&HitTestInfo), Marshal.SizeOf(HitTestInfo.GetType()));
MS\Internal\AutomationProxies\WindowsListView.cs (7)
1269if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1420result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1429result = XSendMessage.XSendGetIndex(hwnd, NativeMethods.LVM_SUBITEMHITTEST, IntPtr.Zero, new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
1493if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETSUBITEMRECT, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(itemRectangle.GetType())))
1664scrollBarInfo.cbSize = Marshal.SizeOf(scrollBarInfo.GetType());
1675si.cbSize = Marshal.SizeOf (si.GetType ());
1792if (XSendMessage.XSend(hwnd, NativeMethods.LVM_GETITEMPOSITION, new IntPtr(item), new IntPtr(location), Marshal.SizeOf(pt.GetType())))
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (12)
96group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
106group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
152group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
240group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
306XSendMessage.XSendGetIndex(_hwnd, NativeMethods.LVM_HITTEST, new IntPtr(-1), new IntPtr(&hitTestNative), Marshal.SizeOf(hitTestNative.GetType()));
332groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
337bool lresult = XSendMessage.XSend(_hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
424group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
490groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
495bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(groupIndex), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
504groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
606group.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP)));
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (5)
386while (XSendMessage.XSend (hwnd, NativeMethods.LVM_GETNEXTITEMINDEX, new IntPtr(&ii), flags, Marshal.SizeOf(ii.GetType())))
390groupInfo.Init(Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
393bool lresult = XSendMessage.XSend(hwnd, NativeMethods.LVM_GETGROUPINFOBYINDEX, new IntPtr(ii.iGroup), new IntPtr(&groupInfo), Marshal.SizeOf(typeof(NativeMethods.LVGROUP_V6)));
703new IntPtr(_groupID), new IntPtr(&rect), Marshal.SizeOf(rect.GetType()));
814sbi.cbSize = Marshal.SizeOf(sbi.GetType());
MS\Internal\AutomationProxies\WindowsRebar.cs (3)
206return XSendMessage.XSendGetIndex(_hwnd, NativeMethods.RB_HITTEST, IntPtr.Zero, new IntPtr(&rbHitTestInfo), Marshal.SizeOf(rbHitTestInfo.GetType()));
399if (!XSendMessage.XSend(hwnd, NativeMethods.RB_GETRECT, new IntPtr(item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
435if (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)
460XSendMessage.XSend(hwnd, NativeMethods.TBM_GETCHANNELRECT, IntPtr.Zero, new IntPtr(&rcChannel), Marshal.SizeOf(rcChannel.GetType()), XSendMessage.ErrorValue.NoCheck);
472XSendMessage.XSend(hwnd, NativeMethods.TBM_GETTHUMBRECT, IntPtr.Zero, new IntPtr(&rcThumb), Marshal.SizeOf(rcThumb.GetType()), XSendMessage.ErrorValue.NoCheck);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
276index = XSendMessage.XSendGetIndex(_hwnd, NativeMethods.TCM_HITTEST, IntPtr.Zero, new IntPtr(&hti), Marshal.SizeOf(hti.GetType()));
653result = XSendMessage.XSend(hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(count - 1), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero);
1272if (!XSendMessage.XSend(_hwnd, NativeMethods.TCM_GETITEMRECT, new IntPtr(_item), new IntPtr(&rectW32), Marshal.SizeOf(rectW32.GetType()), XSendMessage.ErrorValue.Zero))
UIAutomationProvider (1)
UIAutomationTypes (57)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (35)
1525return Marshal.SizeOf(typeof(MONITORINFOEX));
1538return Marshal.SizeOf(typeof(TRACKMOUSEEVENT));
1593return Marshal.SizeOf(typeof(NONCLIENTMETRICS));
1608return Marshal.SizeOf(typeof(ICONMETRICS));
1738return Marshal.SizeOf(typeof(MENUITEMINFO_T));
1785return Marshal.SizeOf(typeof(OPENFILENAME_I));
1964return Marshal.SizeOf(typeof(tagCONTROLINFO));
1991Marshal.Release(this.data1);
2025IntPtr mem = Marshal.AllocCoTaskMem(16);
2026Marshal.WriteInt16(mem, vt);
2027Marshal.WriteInt16(mem, 2, reserved1);
2028Marshal.WriteInt16(mem, 4, reserved2);
2029Marshal.WriteInt16(mem, 6, reserved3);
2030Marshal.WriteInt32(mem, 8, (int) data1);
2031Marshal.WriteInt32(mem, 12, (int) data2);
2049val = (IntPtr) Marshal.ReadByte(val);
2055val = (IntPtr) Marshal.ReadByte(val);
2062val = (IntPtr) Marshal.ReadInt16(val);
2068val = (IntPtr) Marshal.ReadInt16(val);
2075val = (IntPtr) Marshal.ReadInt32(val);
2082val = (IntPtr) Marshal.ReadInt32(val);
2089longVal = Marshal.ReadInt64(val);
2123return Marshal.PtrToStringUni(val);
2126return Marshal.PtrToStringAnsi(val);
2131return Marshal.GetObjectForIUnknown(val);
2145VARIANT varStruct = Marshal.PtrToStructure<VARIANT>(val);
2149Guid guid = Marshal.PtrToStructure<Guid>(val);
2183return Marshal.ReadIntPtr(value);
2305if (Marshal.SystemDefaultCharSize == 1)
2336IntPtr result = Marshal.AllocCoTaskMem(buffer.Length);
2337Marshal.Copy(buffer, 0, result, buffer.Length);
2360Marshal.Copy(ptr, buffer, 0, buffer.Length);
2394IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2);
2395Marshal.Copy(buffer, 0, result, buffer.Length);
2417Marshal.Copy(ptr, buffer, 0, buffer.Length);
vbc (3)
VBCSCompiler (4)
WindowsFormsIntegration (1)
WinFormsControlsTest (1)
xunit.console (2)