Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Locking DLL Pin
Ravi Bhavnani1-Aug-04 5:59
professionalRavi Bhavnani1-Aug-04 5:59 
GeneralRe: Locking DLL Pin
David Crow2-Aug-04 4:12
David Crow2-Aug-04 4:12 
GeneralRe: Locking DLL Pin
David Crow2-Aug-04 4:14
David Crow2-Aug-04 4:14 
GeneralRe: Locking DLL Pin
DavidR_r2-Aug-04 6:32
DavidR_r2-Aug-04 6:32 
GeneralBypass Firewall Pin
Ayman Mahmoud1-Aug-04 4:53
Ayman Mahmoud1-Aug-04 4:53 
GeneralRe: Bypass Firewall Pin
Michael Dunn1-Aug-04 5:32
sitebuilderMichael Dunn1-Aug-04 5:32 
GeneralRe: Bypass Firewall Pin
David Crow2-Aug-04 4:17
David Crow2-Aug-04 4:17 
GeneralSolution Needed Please Pin
Abin1-Aug-04 4:46
Abin1-Aug-04 4:46 
I'm currently on a project which needs to exam memory contents of an other process, basically, it searchs for certain pattern in the target process's page memorys, if pattern found then do some further examination, else keeps searching for same pattern.

I did it by this way:

First, I use ::VirtualQueryEx to obtain all pages of the target process and store those page information(base address and page size) in an array. This step completes in no time.

Second, I use ::ReadProcessMemory to read the memory from each page(bytes by bytes) and compare the bytes with my predefined pattern, which are an array of bytes, using memcmp.

I will finally find the memory address that I want for sure, but the problem is that it's slow, very slow. The target process has over 500 pages and total size of which are over 70MB, it takes like 50 seconds to finish the searching, and that makes my application completely useless.

Now since you guys are all gurus out here, I think there must be something to do to shorten the search time, please help and thanks in advance.
GeneralRe: Solution Needed Please Pin
wb1-Aug-04 12:06
wb1-Aug-04 12:06 
GeneralRe: Solution Needed Please Pin
David Crow2-Aug-04 4:29
David Crow2-Aug-04 4:29 
GeneralPrecompiled headers Pin
0v3rloader1-Aug-04 1:28
0v3rloader1-Aug-04 1:28 
GeneralRe: Precompiled headers Pin
Ivan Cachicatari1-Aug-04 4:50
Ivan Cachicatari1-Aug-04 4:50 
GeneralRe: Precompiled headers Pin
Ravi Bhavnani1-Aug-04 4:54
professionalRavi Bhavnani1-Aug-04 4:54 
GeneralRe: Precompiled headers Pin
Michael Dunn1-Aug-04 5:34
sitebuilderMichael Dunn1-Aug-04 5:34 
GeneralA static library && sub-projects Pin
0v3rloader1-Aug-04 1:26
0v3rloader1-Aug-04 1:26 
GeneralRe: A static library && sub-projects Pin
Ravi Bhavnani1-Aug-04 5:06
professionalRavi Bhavnani1-Aug-04 5:06 
GeneralRe: A static library && sub-projects Pin
0v3rloader1-Aug-04 5:36
0v3rloader1-Aug-04 5:36 
GeneralRe: A static library && sub-projects Pin
Ravi Bhavnani1-Aug-04 5:56
professionalRavi Bhavnani1-Aug-04 5:56 
GeneralRe: A static library && sub-projects Pin
0v3rloader1-Aug-04 6:04
0v3rloader1-Aug-04 6:04 
GeneralRe: A static library && sub-projects Pin
Ravi Bhavnani1-Aug-04 6:09
professionalRavi Bhavnani1-Aug-04 6:09 
GeneralRe: A static library && sub-projects Pin
0v3rloader1-Aug-04 6:38
0v3rloader1-Aug-04 6:38 
GeneralRe: A static library && sub-projects Pin
Ravi Bhavnani1-Aug-04 6:43
professionalRavi Bhavnani1-Aug-04 6:43 
GeneralRe: A static library && sub-projects Pin
Chris Losinger1-Aug-04 16:32
professionalChris Losinger1-Aug-04 16:32 
GeneralProcess Categories Pin
DiffBytes1-Aug-04 0:11
DiffBytes1-Aug-04 0:11 
Generalado Pin
Asha Rams31-Jul-04 22:19
Asha Rams31-Jul-04 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.