5768 references to Marshal
aspire (8)
csc (6)
dotnet (7)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (1)
GenerateDocumentationAndConfigFiles (1)
ILCompiler.Compiler (6)
ILCompiler.Diagnostics (10)
_generated\0\Microsoft.DiaSymReader.ISymNGenWriter.cs (2)
59global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([18, 253, 130, 214, 222, 67, 28, 65, 129, 27, 190, 132, 4, 206, 161, 38]), (global::System.IntPtr)__this);
106global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([18, 253, 130, 214, 222, 67, 28, 65, 129, 27, 190, 132, 4, 206, 161, 38]), (global::System.IntPtr)__this);
_generated\1\Microsoft.DiaSymReader.ISymNGenWriter2.cs (7)
63global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
110global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
151global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
197global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
238global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
293global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
317global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this);
ILCompiler.ReadyToRun (4)
ILCompiler.RyuJit (4)
illink (5)
ILLink.RoslynAnalyzer (5)
libmscordaccore_universal (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Cryptography.Internal (33)
Microsoft.AspNetCore.DataProtection (5)
Microsoft.AspNetCore.Server.IISIntegration (3)
Microsoft.Build.Framework (6)
Microsoft.Build.Tasks.CodeAnalysis (10)
Microsoft.Build.Tasks.Core (19)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Scripting (15)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
Microsoft.CSharp (58)
Microsoft.Diagnostics.DataContractReader (1)
Microsoft.Diagnostics.DataContractReader.Contracts (38)
Microsoft.Diagnostics.DataContractReader.Legacy (72)
_generated\38\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface9.cs (1)
49global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([216, 66, 202, 78, 123, 126, 138, 76, 161, 22, 123, 251, 246, 146, 146, 103]), (global::System.IntPtr)__this);
Microsoft.DiaSymReader (156)
_generated\32\Microsoft.DiaSymReader.IUnsafeComStream.cs (11)
68global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
107global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
146global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
185global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
224global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
263global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
302global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
341global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
380global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
421global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
468global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([12, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70]), (global::System.IntPtr)__this);
_generated\33\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethodPropertiesWriter.cs (3)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([116, 55, 7, 252, 57, 23, 50, 66, 189, 86, 160, 39, 41, 75, 236, 21]), (global::System.IntPtr)__this);
91global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([116, 55, 7, 252, 57, 23, 50, 66, 189, 86, 160, 39, 41, 75, 236, 21]), (global::System.IntPtr)__this);
134global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([116, 55, 7, 252, 57, 23, 50, 66, 189, 86, 160, 39, 41, 75, 236, 21]), (global::System.IntPtr)__this);
_generated\35\Microsoft.DiaSymReader.ISymUnmanagedDocumentWriter.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([235, 175, 31, 176, 80, 196, 77, 58, 190, 236, 180, 206, 236, 1, 224, 6]), (global::System.IntPtr)__this);
100global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([235, 175, 31, 176, 80, 196, 77, 58, 190, 236, 180, 206, 236, 1, 224, 6]), (global::System.IntPtr)__this);
_generated\36\Microsoft.DiaSymReader.IPdbWriter.cs (5)
57global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([30, 238, 236, 152, 45, 117, 211, 17, 141, 86, 0, 192, 79, 104, 11, 43]), (global::System.IntPtr)__this);
102global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([30, 238, 236, 152, 45, 117, 211, 17, 141, 86, 0, 192, 79, 104, 11, 43]), (global::System.IntPtr)__this);
147global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([30, 238, 236, 152, 45, 117, 211, 17, 141, 86, 0, 192, 79, 104, 11, 43]), (global::System.IntPtr)__this);
192global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([30, 238, 236, 152, 45, 117, 211, 17, 141, 86, 0, 192, 79, 104, 11, 43]), (global::System.IntPtr)__this);
241global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([30, 238, 236, 152, 45, 117, 211, 17, 141, 86, 0, 192, 79, 104, 11, 43]), (global::System.IntPtr)__this);
_generated\37\Microsoft.DiaSymReader.ISymUnmanagedWriter5.cs (33)
122global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
193global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
232global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
271global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
311global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
355global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
394global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
435global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
478global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
521global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
564global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
605global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
646global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
689global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
730global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
771global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
819global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
880global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
938global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
996global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1074global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1125global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1188global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1237global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1278global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1321global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1364global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1405global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1444global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1487global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1534global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1573global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
1617global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([13, 120, 247, 220, 233, 189, 223, 69, 172, 254, 33, 115, 26, 50, 0, 12]), (global::System.IntPtr)__this);
_generated\38\Microsoft.DiaSymReader.ISymUnmanagedWriter8.cs (38)
96global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
146global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
185global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
224global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
263global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
312global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
344global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
362global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
380global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
399global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
418global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
436global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
456global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
476global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
496global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
516global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
534global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
554global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
574global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
592global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
612global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
637global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
673global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
702global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
731global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
755global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
785global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
817global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
841global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
861global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
881global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
901global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
919global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
937global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
959global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
977global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
995global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
1018global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([59, 47, 165, 91, 248, 107, 252, 64, 180, 118, 211, 156, 82, 155, 51, 30]), (global::System.IntPtr)__this);
_generated\6\Microsoft.DiaSymReader.IMetadataEmit.cs (49)
144global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
183global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
222global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
261global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
300global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
339global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
378global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
417global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
456global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
495global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
534global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
573global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
612global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
651global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
690global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
729global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
768global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
807global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
846global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
885global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
925global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
969global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1008global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1047global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1086global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1125global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1164global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1203global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1242global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1281global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1320global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1359global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1398global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1437global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1476global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1515global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1554global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1593global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1632global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1671global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1710global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1749global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1788global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1827global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1866global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1905global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1944global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
1983global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
2022global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([76, 238, 63, 186, 185, 236, 65, 78, 131, 183, 24, 63, 164, 28, 216, 89]), (global::System.IntPtr)__this);
_generated\8\Microsoft.DiaSymReader.IMetadataImportProvider.cs (1)
53global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([147, 162, 243, 237, 13, 161, 74, 79, 166, 9, 56, 213, 237, 227, 95, 137]), (global::System.IntPtr)__this);
Microsoft.DotNet.Build.Tasks.Feed (9)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.HotReload.Watch (2)
Microsoft.DotNet.NativeWrapper (6)
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.Extensions.DotNetDeltaApplier (2)
Microsoft.Extensions.Hosting.WindowsServices (12)
Microsoft.Extensions.Logging.Console (6)
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 (3)
Microsoft.NET.Sdk.Razor.Tasks (2)
Microsoft.Private.Windows.Core (28)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualBasic.Forms (4)
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Microsoft.Win32.Registry (5)
Microsoft.Win32.SystemEvents (32)
Mono.Cecil.Pdb (2)
mscorlib (1)
netstandard (1)
NuGet.Common (1)
NuGet.Configuration (1)
NuGet.Packaging (75)
Signing\Cms\NativeCms.cs (55)
71Marshal.Copy(
108var unsignedAttributes = Marshal.PtrToStructure<CRYPT_ATTRIBUTES>(pointer);
109int sizeOfCryptAttributeString = Marshal.SizeOf<CRYPT_ATTRIBUTE_STRING>();
110int sizeOfCryptIntegerBlob = Marshal.SizeOf<CRYPT_INTEGER_BLOB>();
117var attribute = Marshal.PtrToStructure<CRYPT_ATTRIBUTE_STRING>(attributePointer);
128var attributeValue = Marshal.PtrToStructure<CRYPT_INTEGER_BLOB>(attributeValuePointer);
151var counterSignerInfo = Marshal.PtrToStructure<CMSG_SIGNER_INFO>(counterSignerInfoPointer);
171int sizeOfCryptAttributeString = Marshal.SizeOf<CRYPT_ATTRIBUTE_STRING>();
176var signedAttribute = Marshal.PtrToStructure<CRYPT_ATTRIBUTE_STRING>(signedAttributePointer);
189int sizeOfCryptIntegerBlob = Marshal.SizeOf<CRYPT_INTEGER_BLOB>();
195var attributeValue = Marshal.PtrToStructure<CRYPT_INTEGER_BLOB>(attributeValuePointer);
198Marshal.Copy(attributeValue.pbData, bytes, startIndex: 0, length: bytes.Length);
226Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
231Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
245Marshal.Copy(encodedCert, 0, unmanagedCert, encodedCert.Length);
252var unmanagedBlob = hb.Alloc(Marshal.SizeOf(blob));
253Marshal.StructureToPtr(blob, unmanagedBlob, fDeleteOld: false);
261Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
300countersignatureDelAttr.cbSize = (uint)Marshal.SizeOf(countersignatureDelAttr);
301var unmanagedCountersignatureDelAttr = hb.Alloc(Marshal.SizeOf(countersignatureDelAttr));
302Marshal.StructureToPtr(countersignatureDelAttr, unmanagedCountersignatureDelAttr, fDeleteOld: false);
310Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
317var sizeOfCryptAttribute = Marshal.SizeOf<CRYPT_ATTRIBUTE>();
326var existingAttribute = Marshal.PtrToStructure<CRYPT_ATTRIBUTE>(existingAttributePointer);
345var unmanagedSignerInfo = hb.Alloc(Marshal.SizeOf(signerInfo));
346Marshal.StructureToPtr(signerInfo, unmanagedSignerInfo, fDeleteOld: false);
358var err = Marshal.GetLastWin32Error();
361Marshal.ThrowExceptionForHR(NativeMethods.GetHRForWin32Error(err));
375Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
384var unmanagedBlob = hb.Alloc(Marshal.SizeOf(encondedSignerBlob));
385Marshal.StructureToPtr(encondedSignerBlob, unmanagedBlob, fDeleteOld: false);
398signerInfoAddAttr.cbSize = (uint)Marshal.SizeOf(signerInfoAddAttr);
399var unmanagedSignerInfoAddAttr = hb.Alloc(Marshal.SizeOf(signerInfoAddAttr));
401Marshal.StructureToPtr(signerInfoAddAttr, unmanagedSignerInfoAddAttr, fDeleteOld: false);
409Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
421timestampAddAttr.cbSize = (uint)Marshal.SizeOf(timestampAddAttr);
422var unmanagedTimestampAddAttr = hb.Alloc(Marshal.SizeOf(timestampAddAttr));
423Marshal.StructureToPtr(timestampAddAttr, unmanagedTimestampAddAttr, fDeleteOld: false);
431Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
439Marshal.Copy(data, 0, unmanagedData, data.Length);
446var unmanagedBlob = hb.Alloc(Marshal.SizeOf(blob));
447Marshal.StructureToPtr(blob, unmanagedBlob, fDeleteOld: false);
461var unmanagedAttr = hb.Alloc(Marshal.SizeOf(attr));
462Marshal.StructureToPtr(attr, unmanagedAttr, fDeleteOld: false);
474var err = Marshal.GetLastWin32Error();
477Marshal.ThrowExceptionForHR(NativeMethods.GetHRForWin32Error(err));
491Marshal.ThrowExceptionForHR(Marshal.GetHRForLastWin32Error());
PresentationCore (150)
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)
Roslyn.Diagnostics.Analyzers (1)
rzc (2)
System.ComponentModel.TypeConverter (2)
System.Console (53)
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.Data.OleDb (184)
_generated\0\System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.cs (1)
54global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([116, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
_generated\1\System.Data.Common.UnsafeNativeMethods.IErrorInfo.cs (1)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([32, 177, 242, 28, 125, 84, 27, 16, 142, 101, 8, 0, 43, 43, 209, 25]), (global::System.IntPtr)__this);
_generated\2\System.Data.Common.UnsafeNativeMethods.IErrorRecords.cs (5)
58global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
97global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
205global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
262global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
302global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([103, 58, 115, 12, 28, 42, 206, 17, 173, 229, 0, 170, 0, 68, 119, 61]), (global::System.IntPtr)__this);
OleDb_Util.cs (22)
565internal static readonly int SizeOf_tagDBBINDING = Marshal.SizeOf<tagDBBINDING>();
566internal static readonly int SizeOf_tagDBCOLUMNINFO = Marshal.SizeOf<tagDBCOLUMNINFO>();
567internal static readonly int SizeOf_tagDBLITERALINFO = Marshal.SizeOf<tagDBLITERALINFO>();
568internal static readonly int SizeOf_tagDBPROPSET = Marshal.SizeOf<tagDBPROPSET>();
569internal static readonly int SizeOf_tagDBPROP = IsRunningOnX86 ? Marshal.SizeOf<tagDBPROP_x86>() : Marshal.SizeOf<tagDBPROP>();
570internal static readonly int SizeOf_tagDBPROPINFOSET = Marshal.SizeOf<tagDBPROPINFOSET>();
571internal static readonly int SizeOf_tagDBPROPINFO = IsRunningOnX86 ? Marshal.SizeOf<tagDBPROPINFO_x86>() : Marshal.SizeOf<tagDBPROPINFO>();
572internal static readonly int SizeOf_tagDBPROPIDSET = Marshal.SizeOf<tagDBPROPIDSET>();
573internal static readonly int SizeOf_Guid = Marshal.SizeOf<Guid>();
576internal static readonly int OffsetOf_tagDBPROP_Status = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROP_x86), "dwStatus").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROP), "dwStatus").ToInt32();
577internal static readonly int OffsetOf_tagDBPROP_Value = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROP_x86), "vValue").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROP), "vValue").ToInt32();
578internal static readonly int OffsetOf_tagDBPROPSET_Properties = Marshal.OffsetOf(typeof(tagDBPROPSET), "rgProperties").ToInt32();
579internal static readonly int OffsetOf_tagDBPROPINFO_Value = IsRunningOnX86 ? Marshal.OffsetOf(typeof(tagDBPROPINFO_x86), "vValue").ToInt32() : Marshal.OffsetOf(typeof(tagDBPROPINFO), "vValue").ToInt32();
580internal static readonly int OffsetOf_tagDBPROPIDSET_PropertySet = Marshal.OffsetOf(typeof(tagDBPROPIDSET), "guidPropertySet").ToInt32();
581internal static readonly int OffsetOf_tagDBLITERALINFO_it = Marshal.OffsetOf(typeof(tagDBLITERALINFO), "it").ToInt32();
582internal static readonly int OffsetOf_tagDBBINDING_obValue = Marshal.OffsetOf(typeof(tagDBBINDING), "obValue").ToInt32();
583internal static readonly int OffsetOf_tagDBBINDING_wType = Marshal.OffsetOf(typeof(tagDBBINDING), "wType").ToInt32();
OleDbWrapper.cs (39)
35base.handle = Marshal.GetComInterfaceForObject(unknown, typeof(UnsafeNativeMethods.IDataInitialize));
40IntPtr vtable = Marshal.ReadIntPtr(base.handle, 0);
41IntPtr method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.Size); // GetDataSource is the 4'th vtable entry
42DangerousIDataInitializeGetDataSource = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDataInitializeGetDataSource>(method);
82Marshal.InitHandle(newWrapper, handle);
138IntPtr vtable = Marshal.ReadIntPtr(base.handle, 0);
139IntPtr method = Marshal.ReadIntPtr(vtable, 0);
146if ((null == QueryInterface) || (method != Marshal.GetFunctionPointerForDelegate(QueryInterface)))
148QueryInterface = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IUnknownQueryInterface>(method);
155vtable = Marshal.ReadIntPtr(base.handle, 0);
156method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.Size); // Initialize is the 4'th vtable entry
163if ((null == Initialize) || (method != Marshal.GetFunctionPointerForDelegate(Initialize)))
165Initialize = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBInitializeInitialize>(method);
185vtable = Marshal.ReadIntPtr(idbCreateSession, 0);
186method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.Size); // CreateSession is the 4'th vtable entry
192if ((null == CreateSession) || (method != Marshal.GetFunctionPointerForDelegate(CreateSession)))
194CreateSession = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateSessionCreateSession>(method);
221Marshal.InitHandle(newWrapper, handle);
254Marshal.InitHandle(newWrapper, handle);
273Marshal.Release(idbCreateSession);
338IntPtr vtable = Marshal.ReadIntPtr(base.handle, 0);
339IntPtr method = Marshal.ReadIntPtr(vtable, 0);
340UnsafeNativeMethods.IUnknownQueryInterface QueryInterface = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IUnknownQueryInterface>(method);
349vtable = Marshal.ReadIntPtr(idbCreateCommand, 0);
350method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.Size);
352DangerousIDBCreateCommandCreateCommand = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateCommandCreateCommand>(method);
365Marshal.Release(ptr);
383IntPtr vtable = Marshal.ReadIntPtr(base.handle, 0);
384IntPtr method = Marshal.ReadIntPtr(vtable, 3 * IntPtr.Size);
391if ((null == CreateCommand) || (method != Marshal.GetFunctionPointerForDelegate(CreateCommand)))
393CreateCommand = Marshal.GetDelegateForFunctionPointer<UnsafeNativeMethods.IDBCreateCommandCreateCommand>(method);
417nativeICommandText = Marshal.GetIUnknownForObject(icommandText);
426icommandText = Marshal.GetObjectForIUnknown(nativeICommandText);
434Marshal.Release(nativeICommandText);
485Marshal.ReleaseComObject(unknown);
518Marshal.ReleaseComObject(unknown);
549Marshal.ReleaseComObject(unknown);
582Marshal.ReleaseComObject(unknown);
613Marshal.ReleaseComObject(unknown);
PropertyIDSet.cs (5)
26Marshal.WriteIntPtr(base.handle, 0, ptr);
28Marshal.WriteInt32(base.handle, IntPtr.Size, /*propertyid count*/1);
31Marshal.StructureToPtr(propertySet, ptr, false/*deleteold*/);
34Marshal.WriteInt32(base.handle, PropertyIDSetSize, propertyID);
44Marshal.StructureToPtr(propertySets[i], ptr, false/*deleteold*/);
RowBinding.cs (17)
138Marshal.StructureToPtr(dbbindings[i], ptr, false/*deleteold*/);
183value = Marshal.GetObjectForNativeVariant(buffer);
217Marshal.GetNativeVariantForObject(value, buffer);
260Marshal.WriteIntPtr(base.handle, offset, ptr);
261Marshal.WriteIntPtr(base.handle, offset + IntPtr.Size, ptr);
299Marshal.WriteIntPtr(base.handle, offset, pinnedValue); // parameter input value
300Marshal.WriteIntPtr(base.handle, offset + IntPtr.Size, pinnedValue); // original parameter value
401int valueOffset = _headerLength + Marshal.ReadIntPtr(ptr, ODB.OffsetOf_tagDBBINDING_obValue).ToInt32();
402short wtype = Marshal.ReadInt16(ptr, ODB.OffsetOf_tagDBBINDING_wType);
490IntPtr currentValue = Marshal.ReadIntPtr(buffer, valueOffset);
491IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + IntPtr.Size);
503Marshal.WriteIntPtr(buffer, valueOffset, IntPtr.Zero);
504Marshal.WriteIntPtr(buffer, valueOffset + IntPtr.Size, IntPtr.Zero);
519IntPtr currentValue = Marshal.ReadIntPtr(buffer, valueOffset);
520IntPtr originalValue = Marshal.ReadIntPtr(buffer, valueOffset + IntPtr.Size);
529Marshal.WriteIntPtr(buffer, valueOffset, IntPtr.Zero);
530Marshal.WriteIntPtr(buffer, valueOffset + IntPtr.Size, IntPtr.Zero);
System\Data\ProviderBase\DbBuffer.cs (21)
72value = Marshal.PtrToStringUni(ptr, length);
98value = Marshal.ReadByte(ptr, offset);
131Marshal.Copy(ptr, destination, startIndex, length);
164Marshal.Copy(ptr, destination, startIndex, length);
196value = Marshal.ReadInt16(ptr, offset);
223Marshal.Copy(ptr, destination, startIndex, length);
248value = Marshal.ReadInt32(ptr, offset);
275Marshal.Copy(ptr, destination, startIndex, length);
300value = Marshal.ReadInt64(ptr, offset);
326value = Marshal.ReadIntPtr(ptr, offset);
360ValidateCheck(offset, Marshal.SizeOf<T>());
370Marshal.StructureToPtr<T>(structure, ptr, false/*fDeleteOld*/);
394Marshal.WriteByte(ptr, offset, value);
420Marshal.Copy(source, startIndex, ptr, length);
446Marshal.Copy(source, startIndex, ptr, length);
475Marshal.WriteInt16(ptr, offset, value);
501Marshal.Copy(source, startIndex, ptr, length);
525Marshal.WriteInt32(ptr, offset, value);
551Marshal.Copy(source, startIndex, ptr, length);
575Marshal.WriteInt64(ptr, offset, value);
599Marshal.WriteIntPtr(ptr, offset, value);
System.Diagnostics.EventLog (283)
System\Diagnostics\Reader\NativeWrapper.cs (109)
59int win32Error = Marshal.GetLastWin32Error();
77int win32Error = Marshal.GetLastWin32Error();
91int win32Error = Marshal.GetLastWin32Error();
101int win32Error = Marshal.GetLastWin32Error();
126int win32Error = Marshal.GetLastWin32Error();
140int win32Error = Marshal.GetLastWin32Error();
149int win32Error = Marshal.GetLastWin32Error();
163int win32Error = Marshal.GetLastWin32Error();
179int win32Error = Marshal.GetLastWin32Error();
192int win32Error = Marshal.GetLastWin32Error();
205int win32Error = Marshal.GetLastWin32Error();
218int win32Error = Marshal.GetLastWin32Error();
226int win32Error = Marshal.GetLastWin32Error();
245int win32Error = Marshal.GetLastWin32Error();
258int win32Error = Marshal.GetLastWin32Error();
271int win32Error = Marshal.GetLastWin32Error();
282int win32Error = Marshal.GetLastWin32Error();
300int win32Error = Marshal.GetLastWin32Error();
308win32Error = Marshal.GetLastWin32Error();
326int win32Error = Marshal.GetLastWin32Error();
335int win32Error = Marshal.GetLastWin32Error();
348int win32Error = Marshal.GetLastWin32Error();
361int error = Marshal.GetLastWin32Error();
370buffer = Marshal.AllocHGlobal((int)bufferNeeded);
372error = Marshal.GetLastWin32Error();
376UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
382Marshal.FreeHGlobal(buffer);
393int error = Marshal.GetLastWin32Error();
399buffer = Marshal.AllocHGlobal((int)bufferNeeded);
401error = Marshal.GetLastWin32Error();
405UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
411Marshal.FreeHGlobal(buffer);
423int error = Marshal.GetLastWin32Error();
429buffer = Marshal.AllocHGlobal((int)bufferNeeded);
431error = Marshal.GetLastWin32Error();
435UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
441Marshal.FreeHGlobal(buffer);
452int error = Marshal.GetLastWin32Error();
458buffer = Marshal.AllocHGlobal((int)bufferNeeded);
460error = Marshal.GetLastWin32Error();
471UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
477Marshal.FreeHGlobal(buffer);
487int error = Marshal.GetLastWin32Error();
504error = Marshal.GetLastWin32Error();
532int error = Marshal.GetLastWin32Error();
539buffer = Marshal.AllocHGlobal((int)bufferNeeded);
541error = Marshal.GetLastWin32Error();
545UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
551Marshal.FreeHGlobal(buffer);
563int win32Error = Marshal.GetLastWin32Error();
569buffer = Marshal.AllocHGlobal((int)bufferNeeded);
571win32Error = Marshal.GetLastWin32Error();
575UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
581Marshal.FreeHGlobal(buffer);
593int win32Error = Marshal.GetLastWin32Error();
599buffer = Marshal.AllocHGlobal((int)bufferNeeded);
601win32Error = Marshal.GetLastWin32Error();
612UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
618Marshal.FreeHGlobal(buffer);
643taskMem.SetMemory(Marshal.StringToCoTaskMemUni((string)val));
650taskMem.SetMemory(Marshal.StringToCoTaskMemUni((string)val));
693int win32Error = Marshal.GetLastWin32Error();
703int win32Error = Marshal.GetLastWin32Error();
718win32Error = Marshal.GetLastWin32Error();
734int win32Error = Marshal.GetLastWin32Error();
749win32Error = Marshal.GetLastWin32Error();
768int win32Error = Marshal.GetLastWin32Error();
774buffer = Marshal.AllocHGlobal((int)bufferNeeded);
776win32Error = Marshal.GetLastWin32Error();
780UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(buffer);
786Marshal.FreeHGlobal(buffer);
802int error = Marshal.GetLastWin32Error();
807buffer = Marshal.AllocHGlobal((int)bufferNeeded);
809int win32Error = Marshal.GetLastWin32Error();
817UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(pointer);
878pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal)));
884Marshal.FreeHGlobal(buffer);
903int error = Marshal.GetLastWin32Error();
908buffer = Marshal.AllocHGlobal((int)bufferNeeded);
910int win32Error = Marshal.GetLastWin32Error();
920UnsafeNativeMethods.EvtVariant varVal = Marshal.PtrToStructure<UnsafeNativeMethods.EvtVariant>(pointer);
922pointer = new IntPtr(((long)pointer + Marshal.SizeOf(varVal)));
930Marshal.FreeHGlobal(buffer);
939int error = Marshal.GetLastWin32Error();
960error = Marshal.GetLastWin32Error();
996int error = Marshal.GetLastWin32Error();
1008buffer = Marshal.AllocHGlobal(bufferNeeded * 2);
1010error = Marshal.GetLastWin32Error();
1024string? s = Marshal.PtrToStringUni(pointer);
1037Marshal.FreeHGlobal(buffer);
1051int error = Marshal.GetLastWin32Error();
1058buffer = Marshal.AllocHGlobal((int)bufferNeeded);
1060error = Marshal.GetLastWin32Error();
1064return Marshal.PtrToStringUni(buffer)!;
1069Marshal.FreeHGlobal(buffer);
1087int error = Marshal.GetLastWin32Error();
1108error = Marshal.GetLastWin32Error();
1164return (val.GuidReference == IntPtr.Zero) ? Guid.Empty : Marshal.PtrToStructure<Guid>(val.GuidReference);
1170UnsafeNativeMethods.SystemTime sysTime = Marshal.PtrToStructure<UnsafeNativeMethods.SystemTime>(val.SystemTime);
1184Marshal.Copy(val.Reference, arByte, 0, (int)val.Count);
1190Marshal.Copy(val.Reference, arInt16, 0, (int)val.Count);
1196Marshal.Copy(val.Reference, arInt32, 0, (int)val.Count);
1202Marshal.Copy(val.Reference, arInt64, 0, (int)val.Count);
1208Marshal.Copy(val.Reference, arSingle, 0, (int)val.Count);
1214Marshal.Copy(val.Reference, arDouble, 0, (int)val.Count);
1261return Marshal.PtrToStringUni(val.StringVal);
1269return Marshal.PtrToStringAnsi(val.AnsiString);
1367stringArray[i] = ansi ? Marshal.PtrToStringAnsi(ptr[i]) : Marshal.PtrToStringUni(ptr[i]);
System.Diagnostics.FileVersionInfo (11)
System.Diagnostics.PerformanceCounter (68)
System.Diagnostics.Process (110)
System.DirectoryServices (348)
Interop\AdsValueHelper2.cs (10)
134Marshal.PtrToStructure(adsvalue.pointer.value, dnb);
137Marshal.Copy(dnb.lpBinaryValue, bytes, 0, dnb.dwLength);
157strb.Append(Marshal.PtrToStringUni(dnb.pszDNString));
165Marshal.PtrToStructure(adsvalue.pointer.value, dns);
166string strValue = Marshal.PtrToStringUni(dns.pszStringValue) ?? string.Empty;
168return $"S:{strValue.Length}:{strValue}:{Marshal.PtrToStringUni(dns.pszDNString)}";
178return Marshal.PtrToStringUni(adsvalue.pointer.value)!;
194Marshal.Copy(adsvalue.octetString.value, value, 0, len);
228Marshal.PtrToStructure(adsvalue.octetString.value, vlv);
234Marshal.Copy(vlv.contextID, bytes, 0, vlv.contextIDlength);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (21)
288throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
312throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
336throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
401Marshal.PtrToStructure(info, cursors);
435Marshal.PtrToStructure(info, cursors);
461Marshal.PtrToStructure(info, operations);
488Marshal.PtrToStructure(info, neighbors);
512Marshal.PtrToStructure(info, failures);
537Marshal.PtrToStructure(info, objMetaData);
556Marshal.PtrToStructure(info, objMetadata);
587Marshal.PtrToStructure(update, syncAllUpdate);
614Marshal.PtrToStructure(temp, sync);
616targetName = Marshal.PtrToStringUni(sync.pszDstId);
617sourceName = Marshal.PtrToStringUni(sync.pszSrcId);
639throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
645IntPtr syncAllFunctionPointer = Marshal.GetFunctionPointerForDelegate(syncAllCallback);
684throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
698unmanagedGuid = Marshal.AllocHGlobal(structSize);
715Marshal.StructureToPtr(guid, unmanagedGuid, false);
722throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
750Marshal.FreeHGlobal(unmanagedGuid);
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (45)
33tmpDNSName = Marshal.PtrToStringUni(unmanagedTrust.DnsDomainName);
35tmpNetBIOSName = Marshal.PtrToStringUni(unmanagedTrust.NetbiosDomainName);
110records = Marshal.AllocHGlobal(count * IntPtr.Size);
118fileTime = Marshal.AllocHGlobal(Marshal.SizeOf<FileTime>());
123Marshal.PtrToStructure(fileTime, currentTime);
133ptr = Marshal.StringToHGlobalUni(TLN.Name);
137tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_FOREST_TRUST_RECORD>());
139Marshal.StructureToPtr(record, tmpPtr, false);
141Marshal.WriteIntPtr(records, IntPtr.Size * currentCount, tmpPtr);
163ptr = Marshal.StringToHGlobalUni(_excludedNames[i]);
166tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_FOREST_TRUST_RECORD>());
168Marshal.StructureToPtr(record, tmpPtr, false);
170Marshal.WriteIntPtr(records, IntPtr.Size * currentCount, tmpPtr);
187throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
191record.DomainInfo.DNSNameBuffer = Marshal.StringToHGlobalUni(tmp.DnsName);
195record.DomainInfo.NetBIOSNameBuffer = Marshal.StringToHGlobalUni(tmp.NetBiosName);
199tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_FOREST_TRUST_RECORD>());
201Marshal.StructureToPtr(record, tmpPtr, false);
203Marshal.WriteIntPtr(records, IntPtr.Size * currentCount, tmpPtr);
221record.Data.Buffer = Marshal.AllocHGlobal(record.Data.Length);
223Marshal.Copy((byte[])_binaryData[i]!, 0, record.Data.Buffer, record.Data.Length);
225tmpPtr = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_FOREST_TRUST_RECORD>());
227Marshal.StructureToPtr(record, tmpPtr, false);
229Marshal.WriteIntPtr(records, IntPtr.Size * currentCount, tmpPtr);
238forestInfo = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_FOREST_TRUST_INFORMATION>());
239Marshal.StructureToPtr(trustInformation, forestInfo, false);
252target = Marshal.StringToHGlobalUni(TargetName);
286Marshal.FreeHGlobal((IntPtr)ptrList[i]!);
296Marshal.FreeHGlobal(records);
301Marshal.FreeHGlobal(forestInfo);
308Marshal.FreeHGlobal(target);
311Marshal.FreeHGlobal(fileTime);
341targetPtr = Marshal.StringToHGlobalUni(TargetName);
368Marshal.PtrToStructure(forestTrustInfo, trustInfo);
374addr = Marshal.ReadIntPtr(trustInfo.Entries, i * IntPtr.Size);
376Marshal.PtrToStructure(addr, record);
390string excludedName = Marshal.PtrToStringUni(record.TopLevelName.Buffer, record.TopLevelName.Length / 2);
409Marshal.Copy(record.Data.Buffer, byteArray, 0, length);
442Marshal.FreeHGlobal(targetPtr);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (59)
50target = Marshal.StringToHGlobalUni(targetName);
114Marshal.FreeHGlobal(target);
144target = Marshal.StringToHGlobalUni(targetName);
221newInfo = Marshal.AllocHGlobal(sizeof(Interop.Advapi32.TRUSTED_DOMAIN_INFORMATION_EX));
222Marshal.StructureToPtr(domainInfo, newInfo, false);
238Marshal.FreeHGlobal(target);
244Marshal.FreeHGlobal(newInfo);
270target = Marshal.StringToHGlobalUni(targetName);
319Marshal.FreeHGlobal(target);
349target = Marshal.StringToHGlobalUni(targetName);
356data = Marshal.StringToHGlobalUni(targetName);
359data = Marshal.StringToHGlobalUni(targetName + "\\" + preferredTargetServer);
360ptr = Marshal.AllocHGlobal(IntPtr.Size);
361Marshal.WriteIntPtr(ptr, data);
370Marshal.PtrToStructure(buffer1, info);
420Marshal.FreeHGlobal(target);
423Marshal.FreeHGlobal(ptr);
426Marshal.FreeHGlobal(data);
457Marshal.PtrToStructure(info, domainInfo);
460fileTime = Marshal.AllocHGlobal(Marshal.SizeOf<FileTime>());
465Marshal.PtrToStructure(fileTime, tmp);
471unmanagedPassword = Marshal.StringToHGlobalUni(password);
475unmanagedAuthData = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_AUTH_INFORMATION>());
476Marshal.StructureToPtr(AuthData, unmanagedAuthData, false);
538Marshal.FreeHGlobal(fileTime);
547Marshal.FreeHGlobal(unmanagedPassword);
550Marshal.FreeHGlobal(unmanagedAuthData);
582target = Marshal.StringToHGlobalUni(targetName);
613fileTime = Marshal.AllocHGlobal(Marshal.SizeOf<FileTime>());
618Marshal.PtrToStructure(fileTime, tmp);
624unmanagedPassword = Marshal.StringToHGlobalUni(password);
628unmanagedAuthData = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_AUTH_INFORMATION>());
629Marshal.StructureToPtr(AuthData, unmanagedAuthData, false);
648newBuffer = Marshal.AllocHGlobal(sizeof(Interop.Advapi32.TRUSTED_DOMAIN_FULL_INFORMATION));
649Marshal.StructureToPtr(domainInfo, newBuffer, false);
665Marshal.FreeHGlobal(target);
671Marshal.FreeHGlobal(newBuffer);
674Marshal.FreeHGlobal(fileTime);
677Marshal.FreeHGlobal(unmanagedPassword);
680Marshal.FreeHGlobal(unmanagedAuthData);
711target = Marshal.StringToHGlobalUni(targetName);
739fileTime = Marshal.AllocHGlobal(Marshal.SizeOf<FileTime>());
744Marshal.PtrToStructure(fileTime, tmp);
750unmanagedPassword = Marshal.StringToHGlobalUni(password);
754unmanagedAuthData = Marshal.AllocHGlobal(Marshal.SizeOf<LSA_AUTH_INFORMATION>());
755Marshal.StructureToPtr(AuthData, unmanagedAuthData, false);
789newBuffer = Marshal.AllocHGlobal(sizeof(Interop.Advapi32.TRUSTED_DOMAIN_FULL_INFORMATION));
790Marshal.StructureToPtr(domainInfo, newBuffer, false);
806Marshal.FreeHGlobal(target);
812Marshal.FreeHGlobal(newBuffer);
815Marshal.FreeHGlobal(fileTime);
818Marshal.FreeHGlobal(unmanagedPassword);
821Marshal.FreeHGlobal(unmanagedAuthData);
System\DirectoryServices\DirectorySearcher.cs (19)
810sortKey.pszAttrType = Marshal.StringToCoTaskMemUni(Sort.PropertyName);
814byte[] sortKeyBytes = new byte[Marshal.SizeOf(sortKey)];
815Marshal.Copy((INTPTR_INTPTRCAST)(&sortKey), sortKeyBytes, 0, sortKeyBytes.Length);
831vlvValue.target = Marshal.StringToCoTaskMemUni(_vlv.Target);
843vlvValue.contextID = Marshal.AllocCoTaskMem(vlvValue.contextIDlength);
845Marshal.Copy(_vlv.DirectoryVirtualListViewContext._context, 0, vlvValue.contextID, vlvValue.contextIDlength);
847IntPtr vlvPtr = Marshal.AllocHGlobal(Marshal.SizeOf<AdsVLV>());
848byte[] vlvBytes = new byte[Marshal.SizeOf(vlvValue)];
851Marshal.StructureToPtr(vlvValue, vlvPtr, false);
852Marshal.Copy(vlvPtr, vlvBytes, 0, vlvBytes.Length);
856Marshal.FreeHGlobal(vlvPtr);
885Marshal.FreeCoTaskMem(ptrToFree);
888Marshal.FreeCoTaskMem(ptrVLVToFree);
891Marshal.FreeCoTaskMem(ptrVLVContexToFree);
898IntPtr ptr = Marshal.AllocHGlobal(structSize * prefs.Length);
904Marshal.StructureToPtr(prefs[i], tempPtr, false);
914int status = Marshal.ReadInt32(tempPtr, 32);
948Marshal.FreeHGlobal(ptr);
System.DirectoryServices.AccountManagement (113)
System.DirectoryServices.Protocols (146)
System\DirectoryServices\Protocols\common\BerConverter.cs (22)
269Marshal.PtrToStructure(flattenptr, binaryValue);
280Marshal.Copy(binaryValue.bv_val, encodingResult, 0, (int)binaryValue.bv_len.Value);
324berValue.bv_val = Marshal.AllocHGlobal(value.Length);
325Marshal.Copy(value, 0, berValue.bv_val, value.Length);
448Marshal.FreeHGlobal(berValue.bv_val);
469IntPtr tmp = Marshal.AllocHGlobal(tempValue.Length);
470Marshal.Copy(tempValue, 0, tmp, tempValue.Length);
499Marshal.PtrToStructure(result, binaryValue);
502Marshal.Copy(binaryValue.bv_val, byteArray, 0, (int)binaryValue.bv_len.Value);
529int structSize = Marshal.SizeOf<BerVal>();
543managedBervalArray[i].bv_val = Marshal.AllocHGlobal(byteArray.Length);
544Marshal.Copy(byteArray, 0, managedBervalArray[i].bv_val, byteArray.Length);
548IntPtr valPtr = Marshal.AllocHGlobal(structSize);
549Marshal.StructureToPtr(managedBervalArray[i], valPtr, false);
565IntPtr ptr = Marshal.ReadIntPtr(berValArray, IntPtr.Size * i);
567Marshal.FreeHGlobal(ptr);
569Marshal.FreeHGlobal(berValArray);
577Marshal.FreeHGlobal(managedBerval.bv_val);
603tempPtr = Marshal.ReadIntPtr(ptrResult);
607Marshal.PtrToStructure(tempPtr, ber);
610Marshal.Copy(ber.bv_val, berArray, 0, (int)ber.bv_len.Value);
615tempPtr = Marshal.ReadIntPtr(ptrResult, i * IntPtr.Size);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (51)
526int structSize = Marshal.SizeOf<LdapControl>();
534IntPtr controlPtr = Marshal.AllocHGlobal(structSize);
535Marshal.StructureToPtr(managedServerControls[i], controlPtr, false);
550IntPtr controlPtr = Marshal.AllocHGlobal(structSize);
551Marshal.StructureToPtr(managedClientControls[i], controlPtr, false);
612bv_val = Marshal.AllocHGlobal(byteArray.Length)
614Marshal.Copy(byteArray, 0, berValuePtr.bv_val, byteArray.Length);
640int modStructSize = Marshal.SizeOf<LdapMod>();
644IntPtr controlPtr = Marshal.AllocHGlobal(modStructSize);
645Marshal.StructureToPtr(modifications[i], controlPtr, false);
678bv_val = Marshal.AllocHGlobal(val.Length)
680Marshal.Copy(val, 0, berValuePtr.bv_val, val.Length);
776IntPtr tempPtr = Marshal.ReadIntPtr(serverControlArray, IntPtr.Size * i);
779Marshal.FreeHGlobal(tempPtr);
782Marshal.FreeHGlobal(serverControlArray);
791Marshal.FreeHGlobal(managedServerControls[i].ldctl_oid);
798Marshal.FreeHGlobal(managedServerControls[i].ldctl_value.bv_val);
809IntPtr tempPtr = Marshal.ReadIntPtr(clientControlArray, IntPtr.Size * i);
812Marshal.FreeHGlobal(tempPtr);
816Marshal.FreeHGlobal(clientControlArray);
825Marshal.FreeHGlobal(managedClientControls[i].ldctl_oid);
832Marshal.FreeHGlobal(managedClientControls[i].ldctl_value.bv_val);
843IntPtr tempPtr = Marshal.ReadIntPtr(modArray, IntPtr.Size * i);
846Marshal.FreeHGlobal(tempPtr);
850Marshal.FreeHGlobal(modArray);
857Marshal.FreeHGlobal(tempPtr);
862Marshal.FreeHGlobal(berValuePtr.bv_val);
869IntPtr tempPtr = Marshal.ReadIntPtr(searchAttributes, IntPtr.Size * i);
872Marshal.FreeHGlobal(tempPtr);
876Marshal.FreeHGlobal(searchAttributes);
909Marshal.Copy(info.pbData, context, 0, dataLength);
1059length = Marshal.SizeOf<SEC_WINNT_AUTH_IDENTITY_EX>(),
1225bv_val = Marshal.AllocHGlobal(sizeof(byte) * byteControlValue.Length)
1227Marshal.Copy(byteControlValue, 0, managedControls[i].ldctl_value.bv_val, (int)managedControls[i].ldctl_value.bv_len.Value);
1313bv_val = Marshal.AllocHGlobal(byteArray.Length)
1318Marshal.Copy(byteArray, 0, berValues[j].bv_val, (int)berValues[j].bv_len.Value);
1324int structSize = Marshal.SizeOf<BerVal>();
1330controlPtr = Marshal.AllocHGlobal(structSize);
1334Marshal.StructureToPtr(berValues[m], controlPtr, false);
1466Marshal.PtrToStructure(requestValue, val);
1470Marshal.Copy(val.bv_val, requestValueArray, 0, (int)val.bv_len.Value);
1651IntPtr singleControl = Marshal.ReadIntPtr(tempControlPtr, 0);
1659singleControl = Marshal.ReadIntPtr(tempControlPtr, i * IntPtr.Size);
1782IntPtr tempPtr = Marshal.ReadIntPtr(valuesArray, IntPtr.Size * count);
1786Marshal.PtrToStructure(tempPtr, bervalue);
1791Marshal.Copy(bervalue.bv_val, byteArray, 0, (int)bervalue.bv_len.Value);
1796tempPtr = Marshal.ReadIntPtr(valuesArray, IntPtr.Size * count);
1825tempPtr = Marshal.ReadIntPtr(referenceArray, IntPtr.Size * count);
1832tempPtr = Marshal.ReadIntPtr(referenceArray, IntPtr.Size * count);
1921Marshal.PtrToStructure(controlPtr, control);
1927Marshal.Copy(control.ldctl_value.bv_val, bytes, 0, (int)control.ldctl_value.bv_len.Value);
System.Drawing.Common (53)
System\Drawing\Printing\PrinterSettings.cs (5)
144WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastPInvokeError();
640Marshal.Copy(_cachedDevmode, 0, (nint)devmode, _devmodeBytes);
664Marshal.Copy(_extraInfo, 0, (nint)((byte*)devmode + devmode->dmSize), _extraBytes);
996Marshal.Copy((nint)devmode, _cachedDevmode, 0, _devmodeBytes);
1004Marshal.Copy((nint)((byte*)devmode + devmode->dmSize), _extraInfo, 0, _extraBytes);
System.Formats.Tar (26)
System.IO.Compression (13)
System.IO.FileSystem.AccessControl (37)
System.IO.FileSystem.DriveInfo (14)
System.IO.FileSystem.Watcher (29)
System.IO.MemoryMappedFiles (62)
System.IO.Pipes (68)
System.IO.Ports (42)
System.Management (156)
System\Management\ManagementClass.cs (13)
91Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
356Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
489Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
619Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
705Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
771Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
849Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
905Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
932Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1061Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1164Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1258Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1350Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
System\Management\ManagementObject.cs (34)
700Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
796Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
930Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1066Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1195Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1298Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1418Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1475ppwbemCallResult = Marshal.AllocHGlobal(IntPtr.Size);
1476Marshal.WriteIntPtr(ppwbemCallResult, IntPtr.Zero); // Init to NULL.
1495pwbemCallResult = Marshal.ReadIntPtr(ppwbemCallResult);
1497wbemCallResult = (IWbemCallResult)Marshal.GetObjectForIUnknown(pwbemCallResult);
1510Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1520Marshal.FreeHGlobal(ppwbemCallResult);
1523Marshal.Release(pwbemCallResult);
1526Marshal.ReleaseComObject(wbemCallResult);
1665Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1768ppwbemCallResult = Marshal.AllocHGlobal(IntPtr.Size);
1769Marshal.WriteIntPtr(ppwbemCallResult, IntPtr.Zero); // Init to NULL.
1791pwbemCallResult = Marshal.ReadIntPtr(ppwbemCallResult);
1794wbemCallResult = (IWbemCallResult)Marshal.GetObjectForIUnknown(pwbemCallResult);
1807Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1818Marshal.FreeHGlobal(ppwbemCallResult);
1821Marshal.Release(pwbemCallResult);
1824Marshal.ReleaseComObject(wbemCallResult);
1921Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1983Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2054Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2311Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2387Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2480Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2508Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2660Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2748Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
2840Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
System\Management\ManagementPath.cs (13)
116Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
286Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
342Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
384Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
531Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
628Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
658Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
785Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
835Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
959Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
986Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1015Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
1044Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f());
System.Net.Http.WinHttpHandler (130)
System.Net.HttpListener (1)
System.Net.NameResolution (9)
System.Net.NetworkInformation (14)
System.Net.Ping (8)
System.Net.Primitives (12)
System.Net.Quic (4)
System.Net.Security (21)
System.Net.Sockets (57)
System.Net.WebSockets (1)
System.Private.CoreLib (397)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (20)
85return Marshal.QueryInterface(wrapper.ExternalComObject, iid, out unknown) == HResults.S_OK;
97return Marshal.QueryInterface(wrapper.ExternalComObject, IID_IUnknown, out unknown) == HResults.S_OK;
332return Marshal.GetHRForException(ex);
581Marshal.QueryInterface(externalComObject, IID_IReferenceTracker, out trackerObject) == HResults.S_OK)
613Marshal.Release(externalComObject);
644Marshal.Release(_inner);
700Marshal.Release(_trackerObject);
737Marshal.Release(_trackerObject);
998if (0 != Marshal.QueryInterface(comObject, IID_TaggedImpl, out nint implMaybe))
1005Marshal.Release(implMaybe);
1033Marshal.QueryInterface(externalComObject, IID_IReferenceTracker, out IntPtr referenceTrackerPtr) == HResults.S_OK)
1046Marshal.ThrowExceptionForHR(Marshal.QueryInterface(checkForIdentity, IID_IUnknown, out identity));
1051Marshal.ThrowExceptionForHR(Marshal.QueryInterface(externalComObject, IID_IUnknown, out identity));
1174Marshal.Release(identity);
1178Marshal.Release(referenceTrackerMaybe);
1567Marshal.Release(unknownPtr);
1631if (Marshal.QueryInterface(target.Ptr, IID_IUnknown, out IntPtr targetIdentityPtr) == HResults.S_OK)
1891Marshal.Release(_ptr);
System.Private.Windows.Core (120)
System.Private.Windows.GdiPlus (3)
System.Reflection.Metadata (5)
System.Runtime.InteropServices (32)
System.Runtime.InteropServices.JavaScript (11)
System.Security.AccessControl (56)
System.Security.Cryptography (372)
System.Security.Cryptography.Pkcs (140)
System.Security.Cryptography.ProtectedData (14)
System.Security.Principal.Windows (114)
System\Security\Principal\WindowsIdentity.cs (24)
147throw new SecurityException(Marshal.GetLastPInvokeErrorMessage());
180Marshal.Copy(upnBytes, 0, pKerbS4uLogin->ClientUpn.Buffer, upnBytes.Length);
272Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_INVALID_HANDLE)
288throw new SecurityException(Marshal.GetLastPInvokeErrorMessage());
401return Marshal.PtrToStringUni(logonSessionData.AuthenticationPackage.Buffer);
491throw new SecurityException(Marshal.GetLastPInvokeErrorMessage());
499throw new SecurityException(Marshal.GetLastPInvokeErrorMessage());
759throw new SecurityException(Marshal.GetPInvokeErrorMessage(hr));
780Environment.FailFast(Marshal.GetLastPInvokeErrorMessage());
800Environment.FailFast(Marshal.GetLastPInvokeErrorMessage());
805Environment.FailFast(Marshal.GetLastPInvokeErrorMessage());
823throw new SecurityException(Marshal.GetPInvokeErrorMessage(hr));
849return new SecurityException(Marshal.GetPInvokeErrorMessage((int)win32ErrorCode));
859hr = Marshal.GetHRForLastWin32Error();
879hr = GetHRForWin32Error(Marshal.GetLastPInvokeError());
919int dwErrorCode = Marshal.GetLastPInvokeError();
934throw new SecurityException(Marshal.GetLastPInvokeErrorMessage());
951throw new SecurityException(Marshal.GetPInvokeErrorMessage(dwErrorCode));
1259string name = Marshal.PtrToStringUni(windowsClaim.Name)!;
1266Marshal.Copy(windowsClaim.Values.ppString, stringPointers, 0, (int)windowsClaim.ValueCount);
1270Claim c = new Claim(name, Marshal.PtrToStringUni(stringPointers[item])!, ClaimValueTypes.String, _issuerName, _issuerName, this);
1278Marshal.Copy(windowsClaim.Values.pInt64, intValues, 0, (int)windowsClaim.ValueCount);
1291Marshal.Copy(windowsClaim.Values.pUint64, uintValues, 0, (int)windowsClaim.ValueCount);
1303Marshal.Copy(windowsClaim.Values.pUint64, boolValues, 0, (int)windowsClaim.ValueCount);
System.ServiceProcess.ServiceController (75)
System.Speech (133)
Internal\SrgsCompiler\CFGGrammar.cs (7)
281if (cfgSerializedHeader.pszWords < Marshal.SizeOf<CfgSerializedHeader>())
303streamHelper.Stream.Position = (int)cfgSerializedHeader.pRules + (header.rules.Length * Marshal.SizeOf<CfgRule>());
328if (pFH.pszWords < Marshal.SizeOf<CfgSerializedHeader>())
420CheckSetOffsets(pFH.pRules, pFH.cRules * Marshal.SizeOf<CfgRule>(), ref ullStartOffset, pFH.ulTotalSerializedSize);
426CheckSetOffsets(pFH.pArcs, pFH.cArcs * Marshal.SizeOf<CfgArc>(), ref ullStartOffset, pFH.ulTotalSerializedSize);
438CheckSetOffsets(pFH.tags, pFH.cTags * Marshal.SizeOf<CfgSemanticTag>(), ref ullStartOffset, pFH.ulTotalSerializedSize);
475CheckSetOffsets(pFH.pScripts, pFH.cScripts * Marshal.SizeOf<CfgScriptRef>(), ref ullStartOffset, pFH.ulTotalSerializedSize);
Internal\StreamMarshaler.cs (16)
30int sizeOfOne = Marshal.SizeOf<T>();
36Marshal.Copy(ab, 0, buffer, sizeObject);
39ao[i] = Marshal.PtrToStructure<T>((nint)buffer + (nint)i * sizeOfOne);
46int sizeOfOne = Marshal.SizeOf<T>();
53Marshal.StructureToPtr<T>(ao[i], (nint)buffer + (nint)i * sizeOfOne, false);
56Marshal.Copy(buffer, ab, 0, sizeObject);
70Marshal.Copy(ab, 0, buffer, sizeObject);
71Marshal.Copy(buffer, ach, 0, c);
109Marshal.Copy(ach, 0, buffer, c);
110Marshal.Copy(buffer, ab, 0, sizeObject);
118int sizeObject = Marshal.SizeOf<T>();
123Marshal.Copy(ab, 0, buffer, sizeObject);
124Marshal.PtrToStructure<T>(buffer, o);
130int sizeObject = Marshal.SizeOf<T>();
134Marshal.StructureToPtr<T>(o, buffer, false);
135Marshal.Copy(buffer, ab, 0, sizeObject);
Internal\Synthesis\AudioBase.cs (15)
46Marshal.Copy(pBuff, buffer, 0, cb);
239int cRiff = Marshal.SizeOf<RIFFHDR>();
240int cBlock = Marshal.SizeOf<BLOCKHDR>();
242int cDataHdr = Marshal.SizeOf<DATAHDR>();
383wfx.wFormatTag = Marshal.ReadInt16(ptr);
384wfx.nChannels = Marshal.ReadInt16(ptr, 2);
385wfx.nSamplesPerSec = Marshal.ReadInt32(ptr, 4);
386wfx.nAvgBytesPerSec = Marshal.ReadInt32(ptr, 8);
387wfx.nBlockAlign = Marshal.ReadInt16(ptr, 12);
388wfx.wBitsPerSample = Marshal.ReadInt16(ptr, 14);
389wfx.cbSize = Marshal.ReadInt16(ptr, 16);
405avgBytesPerSec = Marshal.ReadInt32(ptr, 8);
406nBlockAlign = Marshal.ReadInt16(ptr, 12);
424int cbSize = Marshal.ReadInt16(waveHeader, 16);
426Marshal.Copy(waveHeader, ab, 0, 18 + cbSize);
System.Text.Encoding.CodePages (2)
System.Threading.AccessControl (43)
System.Transactions.Local (76)
_generated\10\System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction.cs (3)
54global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([132, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
99global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([132, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
144global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([132, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
_generated\11\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.cs (4)
56global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
101global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
146global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
193global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([80, 105, 101, 2, 82, 33, 208, 17, 148, 76, 0, 160, 201, 5, 65, 110]), (global::System.IntPtr)__this);
_generated\12\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport.cs (2)
57global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([165, 253, 65, 1, 192, 143, 206, 17, 189, 24, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
116global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([165, 253, 65, 1, 192, 143, 206, 17, 189, 24, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
_generated\13\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([83, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]), (global::System.IntPtr)__this);
101global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([83, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]), (global::System.IntPtr)__this);
_generated\14\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([224, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
92global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([224, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
_generated\15\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser.cs (2)
54global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
116global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 217, 106, 58, 185, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
_generated\16\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionEnlistmentAsync.cs (3)
51global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([129, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
89global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([129, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
127global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([129, 80, 177, 15, 65, 175, 206, 17, 189, 43, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
_generated\17\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport.cs (1)
55global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([90, 155, 207, 225, 69, 135, 206, 17, 169, 186, 0, 170, 0, 108, 55, 6]), (global::System.IntPtr)__this);
_generated\18\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImportWhereabouts.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([164, 253, 65, 1, 192, 143, 206, 17, 189, 24, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
98global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([164, 253, 65, 1, 192, 143, 206, 17, 189, 24, 32, 76, 79, 79, 80, 32]), (global::System.IntPtr)__this);
_generated\19\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0EnlistmentAsync.cs (5)
55global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
93global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
131global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
169global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
212global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([225, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
_generated\20\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0Factory.cs (1)
55global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([224, 136, 220, 130, 84, 169, 209, 17, 143, 136, 0, 96, 8, 149, 231, 213]), (global::System.IntPtr)__this);
_generated\21\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0NotifyAsync.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([9, 24, 8, 239, 118, 12, 210, 17, 135, 166, 0, 192, 79, 153, 15, 52]), (global::System.IntPtr)__this);
92global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([9, 24, 8, 239, 118, 12, 210, 17, 135, 166, 0, 192, 79, 153, 15, 52]), (global::System.IntPtr)__this);
_generated\22\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver.cs (4)
60global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
124global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
177global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
240global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([3, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
_generated\23\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiverFactory.cs (1)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([2, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
_generated\24\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionResourceAsync.cs (4)
60global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([240, 113, 233, 105, 206, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
104global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([240, 113, 233, 105, 206, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
145global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([240, 113, 233, 105, 206, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
185global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([240, 113, 233, 105, 206, 35, 207, 17, 173, 96, 0, 170, 0, 167, 76, 205]), (global::System.IntPtr)__this);
_generated\25\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionTransmitter.cs (5)
60global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([1, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
109global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([1, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
155global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([1, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
206global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([1, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
251global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([1, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
_generated\26\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionTransmitterFactory.cs (1)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([0, 62, 49, 89, 108, 179, 207, 17, 165, 57, 0, 170, 0, 104, 135, 195]), (global::System.IntPtr)__this);
_generated\27\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterBallotAsync2.cs (1)
47global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([108, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
_generated\28\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterFactory2.cs (1)
57global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([106, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
_generated\29\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterNotifyAsync2.cs (5)
58global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([107, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
101global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([107, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
141global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([107, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
179global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([107, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
217global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([107, 55, 51, 84, 77, 65, 211, 17, 178, 6, 0, 192, 79, 194, 243, 239]), (global::System.IntPtr)__this);
_generated\5\System.Transactions.DtcProxyShim.DtcInterfaces.IPrepareInfo.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([208, 191, 199, 128, 238, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
96global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([208, 191, 199, 128, 238, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
_generated\6\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2.cs (2)
65global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 156, 54, 107, 210, 251, 209, 17, 143, 71, 0, 192, 79, 142, 229, 125]), (global::System.IntPtr)__this);
147global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 156, 54, 107, 210, 251, 209, 17, 143, 71, 0, 192, 79, 142, 229, 125]), (global::System.IntPtr)__this);
_generated\7\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager.cs (4)
68global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 29, 116, 19, 235, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
140global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 29, 116, 19, 235, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
189global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 29, 116, 19, 235, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
234global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([33, 29, 116, 19, 235, 135, 206, 17, 128, 129, 0, 128, 199, 88, 82, 126]), (global::System.IntPtr)__this);
_generated\8\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink.cs (1)
47global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([129, 49, 86, 13, 251, 222, 206, 17, 174, 209, 0, 170, 0, 81, 226, 196]), (global::System.IntPtr)__this);
_generated\9\System.Transactions.DtcProxyShim.DtcInterfaces.ITmNodeName.cs (2)
52global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([136, 79, 39, 48, 228, 110, 78, 71, 155, 149, 120, 7, 188, 158, 248, 207]), (global::System.IntPtr)__this);
99global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([136, 79, 39, 48, 228, 110, 78, 71, 155, 149, 120, 7, 188, 158, 248, 207]), (global::System.IntPtr)__this);
System.Windows.Controls.Ribbon (2)
System.Windows.Extensions (46)
System.Windows.Forms (73)
System.Windows.Forms.Design (6)
System.Windows.Forms.Primitives (297)
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\wpf\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 (6)
VBCSCompiler (7)
WindowsFormsIntegration (1)