Desktop Functions: Smart Device Functions:
|
heapwalk (kernel32)
C# Signature:
[DllImport("kernel32.dll", SetLastError = true)] VB Signature:
Declare Function heapwalk Lib "kernel32.dll" (TODO) As TODO User-Defined Types:public enum PROCESS_HEAP_ENTRY_WFLAGS : ushort {
PROCESS_HEAP_ENTRY_BUSY = 0x0004, } [StructLayoutAttribute(LayoutKind.Explicit)] public struct UNION_BLOCK {
[FieldOffset(0)] } [StructLayoutAttribute(LayoutKind.Sequential)] public struct STRUCT_BLOCK {
public IntPtr hMem; } [StructLayoutAttribute(LayoutKind.Sequential)] public struct STRUCT_REGION {
public uint dwCommittedSize; } [StructLayoutAttribute(LayoutKind.Sequential)] public struct PROCESS_HEAP_ENTRY {
public IntPtr lpData; } Alternative Managed API:Do you know one? Please contribute it! Notes:None. Tips & Tricks:Please add some! Sample Code:PROCESS_HEAP_ENTRY h = new PROCESS_HEAP_ENTRY(); uint size = 0; while(HeapWalk(heapHandle, ref h)) {
if (h.wFlags == PROCESS_HEAP_ENTRY_WFLAGS.PROCESS_HEAP_ENTRY_BUSY) } Console.WriteLine("Size: " + size); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|