I am looking for a way to find a mapping between the heap and the module to which the heap belongs. I extract the heaps as follows:
HANDLE heaps[1025]; DWORD nheaps = GetProcessHeaps((sizeof(heaps) / sizeof(HANDLE)) - 1, heaps); for (DWORD i = 0; i < nheaps; ++i) {
The reason I want to do this is because in my application I find about 40 heaps, some of them are standard heaps, others are heaps with low fragmentation. Now I'm trying to figure out which module uses that heap.
Thanks a lot!
source share