Posted: Tue Nov 04, 2008 11:58 am Post subject: Enumerating Heaps
Hi
I wanna see what heap a pointer is in and I know one way I could do it is GetProcessHeaps/HeapWalk but I want to do it to another process and would rather not inject a DLL unless necessary. Therefore I was looking at CreateToolhelp32Snapshot/Heap32ListFirst but it looks like I can only get size of heaps from that, not pointers to the base of the heap or rather the data portion of the heap element. Have I overlooked something ?
if you have the size of the heap can't you take the base address of the program + heapsize1 +heapsize2 + heapsize3 ... +heapsize(n) until you are at the pointers heap? _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum