Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[CE-LIB] please help me about scan procedure

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
WndDrgn
Cheater
Reputation: 0

Joined: 24 May 2015
Posts: 49

PostPosted: Sat Dec 26, 2015 9:34 pm    Post subject: [CE-LIB] please help me about scan procedure Reply with quote

I have write code like below, but iCountAddressesFound() still return 0.
But when i try to use cheatengine, it show 27 found address.
Why is that?

Code:

bool sSCAN::FirstScan() {
    bool _stat= false;
    BSTR l_pid= ::SysAllocString(L"000002F0");
    TScanOption scanOption= soExactValue;
    TVariableType variableType= vtDword;
    TRoundingType roundingtype= rtRounded;
    BSTR scanvalue1= ::SysAllocString(L"100");
    BSTR scanvalue2= ::SysAllocString(L"");
    BSTR startaddress = ::SysAllocString(L"$00000000");
    BSTR stopaddress = ::SysAllocString(L"$7fffffff");
    bool hexadecimal= false;
    bool binaryStringAsDecimal= false;
    bool unicode= false;
    bool casesensitive= false;
    TFastScanMethod fastscanmethod= fsmNotAligned;
    BSTR fastscanparameter= ::SysAllocString(L"4");

    iOpenProcess(l_pid);
    iInitMemoryScanner((HWND)GetCurrentProcess());
    iConfigScanner(scanInclude, scanDontCare, scanExclude);
    iFirstScan(scanOption, variableType,
        roundingtype, scanvalue1, scanvalue2,
        startaddress, stopaddress, hexadecimal, binaryStringAsDecimal,
        unicode, casesensitive, fastscanmethod,
        fastscanparameter);
    stat= 2;

    _exit:
    ::SysFreeString(l_pid);
    ::SysFreeString(scanvalue1);
    ::SysFreeString(scanvalue2);
    ::SysFreeString(startaddress);
    ::SysFreeString(stopaddress);
    ::SysFreeString(fastscanparameter);
    return _stat;
}
Back to top
View user's profile Send private message
WndDrgn
Cheater
Reputation: 0

Joined: 24 May 2015
Posts: 49

PostPosted: Sun Dec 27, 2015 7:12 pm    Post subject: Reply with quote

Hello, DarkByte.

Maybe can you help me please?
Because ce-lib was taken from cheatengine source.
Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25794
Location: The netherlands

PostPosted: Sun Dec 27, 2015 8:05 pm    Post subject: Reply with quote

sorry. i don't give support on it.

but perhaps you are getting the results to early

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
WndDrgn
Cheater
Reputation: 0

Joined: 24 May 2015
Posts: 49

PostPosted: Sun Jan 03, 2016 3:43 am    Post subject: Reply with quote

Dark Byte wrote:
sorry. i don't give support on it.

but perhaps you are getting the results to early

Thanx DarkByte.
It is work.

But when i try to get the found data, the reference said that it stored in page file, so i need to load correct page first.
Then i give up.
Maybe he is not take the scanning procedure from cheatengine.

That is not what my target is.
My target is to put anything in memory, not like my old project that save anything to disk.
But funny thing is, it run at same speed. LOL

But i am not care anyway.
My goal is to build debugger, in my current memory editor project as stepping stone.
And i want to get help from cheatengine forum .... Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites