hi,
I have a doubt on HeapFree Function.

We do the heap allocation like this.
pV = HeapAlloc(Mem, HEAP_ZERO_MEMORY , ulSize);

When we do the heap free
HeapFree(Mem, 0, pV);


does this freeing memory has by any chance corrupt the memeory. What actually happens when the HeapFree function in called? is the the memory that is released by this HeapFree can be reused till the Heap is destroyed?

Thanks in Advance,
Varadha