25 references to AllocHGlobal
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\RequestQueue.cs (1)
58pSecurityDescriptor = Marshal.AllocHGlobal(securityDescriptorBytes.Length);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
ProcessTracker.cs (1)
35var extendedInfoPtr = Marshal.AllocHGlobal(length);
Microsoft.Build.Tasks.UnitTests (1)
MockUnmanagedMemoryHelper.cs (1)
42IntPtr handle = Marshal.AllocHGlobal(cb);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Windows\Network\WindowsTcpStateInfo.cs (1)
121tcpTable = Marshal.AllocHGlobal((int)size);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.cs (1)
64_warningNumberArrayPointer = Marshal.AllocHGlobal(0);
PresentationFramework (9)
MS\Internal\Printing\PrintDlgExMarshaler.cs (6)
490pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 530unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize); 569pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 609unmanagedBuffer = Marshal.AllocHGlobal(cbBufferSize); 724hDevNames = Marshal.AllocHGlobal(cbDevNames); 815IntPtr hDevMode = Marshal.AllocHGlobal(devModeData.Length);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (1)
45AbiToProjectionVftablePtr = Marshal.AllocHGlobal(Marshal.SizeOf<Vftbl>());
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IUnknownVftbl.cs (1)
25AbiToProjectionVftblPtr = Marshal.AllocHGlobal(Marshal.SizeOf<IUnknownVftbl>());
System\Windows\Documents\NLGSpellerInterop.cs (1)
189IntPtr inputArray = Marshal.AllocHGlobal(count * 2);
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
325_ptrToDsObjectNames = Marshal.AllocHGlobal(data.Length);
System.Net.Security (1)
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
39handle = Marshal.AllocHGlobal(SecChannelBindingSize + _cbtPrefixByteArraySize + CertHashMaxSize);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
972IntPtr ptr = AllocHGlobal(checked(nb + 1));
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
370ptr = Marshal.AllocHGlobal(byteLength); 429buffer.SetHandle(Marshal.AllocHGlobal(byteLength));
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\NativeHeapMemoryBlock.cs (1)
32_pointer = Marshal.AllocHGlobal(size);
System.Security.Cryptography (1)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
47handle = Marshal.AllocHGlobal(spanLen * sizeof(char));
System.Text.Encoding.CodePages (1)
System\Text\BaseCodePageEncoding.cs (1)
369byte* pNativeMemory = (byte*)Marshal.AllocHGlobal(iSize);
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4153hGlobalColumns = Marshal.AllocHGlobal((int)(lvItem.cColumns * sizeof(int)));
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
28_hInstance = Marshal.AllocHGlobal(size);
System.Windows.Forms.Tests (1)
System\Windows\Forms\MessageTests.cs (1)
187IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf<TestStruct>());