[DllImport("kernel32.dll", SetLastError = true)]
public static extern UInt32 GetProcessHeaps(
UInt32 NumberOfHeaps,
IntPtr[] ProcessHeaps);
Declare Function GetProcessHeaps Lib "kernel32" (ByVal NumberOfHeaps As Integer, ByRef ProcessHeaps As Integer) As Integer
None.
None.
Although the parameter ProcessHeaps is declared as out in the MSDN, it is in. How else should the method be able to recieve a buffer?
IntPtr[] buffer;
uint count = GetProcessHeaps(0, null);
buffer = new IntPtr[count];
GetProcessHeaps(count, buffer);
Do you know one? Please contribute it!