I am trying to finde the memory size of a loaded DLL I have been told to use
VirtualQuery.
But I can't figure out how to use the information returned.
The RegionSize member does not seem to be the total size, compared to the
value seen in "Process Explorer" from www.sysinternals.com.
Do I need to do some extra processing or what ?
Thanks.
LPCVOID lpAddress = hInstPlugin;
while( VirtualQuery( lpAddress , &stMemInfo , sizeof( stMemInfo )) )
{
if( stMemInfo.AllocationBase != hInstPlugin || stMemInfo.State ==
MEM_FREE )
break;
dwMemSize += stMemInfo.RegionSize;
lpAddress = (char *)lpAddress + stMemInfo.RegionSize;
}
"Kennet" <Kenn...@nospam.ofir.dk> wrote in message
news:3db12f3e$0$773$ba62...@nntp03.dk.telia.net...