When I call HeapWalk with AppVerifier running, the function returns ERROR_INVALID_FUNCTION.Does AppVerifier supports HeapWalk function? //hHeap is a valid handle passed in PROCESS_HEAP_ENTRY HeapEntry; memset(&HeapEntry, 0, sizeof(HeapEntry)); while (::HeapWalk(hHeap, &HeapEntry)) { Blah..blah... } DWORD dwRet = GetLastError(); //dwRet returns ERROR_INVALID_FUNCTION
You would need to use VerifierEnumerateResource(AvrfResourceHeapAllocation) instead, that, incidentally, can be used even without AppVerifier. -- -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "fmeng" wrote in message news:9FDF73B1-0405-4EBE-97AB-A806B0A70112@microsoft.com... > > When I call HeapWalk with AppVerifier running, the function returns > ERROR_INVALID_FUNCTION.Does AppVerifier supports HeapWalk function? > > //hHeap is a valid handle passed in > PROCESS_HEAP_ENTRY HeapEntry; > memset(&HeapEntry, 0, sizeof(HeapEntry)); > while (::HeapWalk(hHeap, &HeapEntry)) > { > Blah..blah... > } > DWORD dwRet = GetLastError(); //dwRet returns ERROR_INVALID_FUNCTION > > > >