Questions tagged [virtualquery]

20 questions
0
votes
1 answer

Performance issue while searching string in memory

I'm developing DLL under Win32 that makes a simple job: it scans host's virtual memory for substring. But for some reason it does it very slow comparing to Cheat Engine, ArtMoney or even OllyDbg that uses single thread to scan. Here's the code of…
Dr Morgan
  • 1
  • 1
0
votes
2 answers

Can't VirtualAlloc on free region returned by VirtualQuery

I am trying to allocate a certain amount of memory within some memory range in a DLL that gets loaded within a Windows Application. The way I am doing it, is using VirtualQuery() to search for a region of memory that is marked as free and is within…
elventear
  • 341
  • 1
  • 4
  • 10
0
votes
1 answer

Win API VirtualQueryEx Function,ERROR_BAD_LENGTH

Hi I try to call the VirtualQueryEx function to get some Information about Memory Protection, however my code gives me error 0x18 (ERROR_BAD_LENGTH) and i dont know whats wrong with my code; code snippet: PMEMORY_BASIC_INFORMATION…
h3rock
  • 3
  • 2
0
votes
3 answers

Scanning process memory causes crash

i have injected my DLL into process and i try to scan memory for addresses with same value as mine, but it results in a crash after i get 1st address , it should be 10 addresses for(DWORD i = MEM_START; i< MEM_END ;i++) { …
user1892003
  • 19
  • 1
  • 5
-1
votes
1 answer

MEMORY_BASIC_INFORMATION32 not legal anymore?

I am trying to query memory information using the Windows API. I want to target both x86 and x64. So I read the docs about MEMORY_BASIC_INFORMATION and found that I needed two to do different queries depending on the target process "bitness". But…
Jerry
  • 13
  • 5
1
2