7 references to AllocHGlobal
Microsoft.AspNetCore.Cryptography.Internal (1)
SafeHandles\SecureLocalAllocHandle.cs (1)
46
handle = Marshal.
AllocHGlobal
(cb); // actually calls LocalAlloc
System.Data.Odbc (1)
Common\System\Data\Common\SafeNativeMethods.cs (1)
12
var handle = Marshal.
AllocHGlobal
(initialSize);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (3)
31
public static IntPtr AllocHGlobal(int cb) =>
AllocHGlobal
((nint)cb);
934
IntPtr ptr =
AllocHGlobal
((IntPtr)nb);
955
IntPtr ptr =
AllocHGlobal
((IntPtr)nb);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
74
public static IntPtr AllocCoTaskMem(int cb) =>
AllocHGlobal
((nint)(uint)cb);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
1431
ptrToFree = Marshal.
AllocHGlobal
((nint)(sizeToAllocate + (IntPtr.Size - 1)));