Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Mon, 10 Mar 2008 15:11:06 -0700,    group: microsoft.public.win32.programmer.tools        back       


AppVerifier: HeapWalk returns ERROR_INVALID_FUNCTION   
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
date: Mon, 10 Mar 2008 15:11:06 -0700   author:   fmeng

Re: AppVerifier: HeapWalk 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
>
>
>
>
date: Tue, 11 Mar 2008 08:20:14 -0700   author:   Ivan Brugiolo [MSFT]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us