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 


[Help] PspCidTable

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

Joined: 09 Jan 2008
Posts: 84

PostPosted: Thu May 15, 2008 3:08 am    Post subject: [Help] PspCidTable Reply with quote

can somebody show me the actual code on how to walk through all running process with PspCidtable?
_________________
Code:
XXXXXX      XXXXXX
   XXXXX  XXXXX
     XXXXXXXX
    D I R E C T
     XXXXXXXX
   XXXXX  XXXXX
XXXXXX      XXXXXX
      GameDev
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Thu May 15, 2008 4:46 am    Post subject: Reply with quote

Check out this example:
http://www.wasm.ru/pub/21/files/phunter.rar

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ShurikeN
Advanced Cheater
Reputation: 0

Joined: 09 Jan 2008
Posts: 84

PostPosted: Thu May 15, 2008 5:14 am    Post subject: Reply with quote

whew! confusing hehe. i wish there's a shorter and simplier one.
anyway, i'll try to stick to it and see if i could grasp some.

_________________
Code:
XXXXXX      XXXXXX
   XXXXX  XXXXX
     XXXXXXXX
    D I R E C T
     XXXXXXXX
   XXXXX  XXXXX
XXXXXX      XXXXXX
      GameDev
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu May 15, 2008 7:52 am    Post subject: Reply with quote

Wiccaan wrote:
Check out this example:
http://www.wasm.ru/pub/21/files/phunter.rar


Thanks i was lookin for this too.
When i get home im going to download it, cuz im at school right now Razz which doesnt even have WinRAR! (*goes and downloads*)

_________________
Back to top
View user's profile Send private message
ShurikeN
Advanced Cheater
Reputation: 0

Joined: 09 Jan 2008
Posts: 84

PostPosted: Thu May 15, 2008 8:37 am    Post subject: Reply with quote

hi lurc, when you have time can you make a simplier one? only the pspcidtable. i have never done driver programming, i downloaded ntddk.h and when i try to compile it shows many errors. it says "blabla does not name a type"... ".. does not name a type"..
_________________
Code:
XXXXXX      XXXXXX
   XXXXX  XXXXX
     XXXXXXXX
    D I R E C T
     XXXXXXXX
   XXXXX  XXXXX
XXXXXX      XXXXXX
      GameDev
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu May 15, 2008 8:38 am    Post subject: Reply with quote

You need to download WDK/DDK to develop drivers.
And im gonna analyse the code and attempt my own too, so ill post results later. like i said i cant do much except for read the code atm cuz im at school lol.

_________________
Back to top
View user's profile Send private message
ShurikeN
Advanced Cheater
Reputation: 0

Joined: 09 Jan 2008
Posts: 84

PostPosted: Thu May 15, 2008 4:19 pm    Post subject: Reply with quote

uh, ok.
btw, how does the CE implement the Process List(long) ?? does it also involve driver programming?

_________________
Code:
XXXXXX      XXXXXX
   XXXXX  XXXXX
     XXXXXXXX
    D I R E C T
     XXXXXXXX
   XXXXX  XXXXX
XXXXXX      XXXXXX
      GameDev
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu May 15, 2008 4:37 pm    Post subject: Reply with quote

Process List (Long) is just looping a range of process id's and opening them then getting the name
heres the code for that (taken from CE5.4's src, removed the commented stuff just to shorten the length)

Code:
begin
  freeonterminate:=true;
  i:=0;

  freeonterminate:=true;
  me32.dwSize:=sizeof(MODULEENTRY32);


  while not terminated and (i<$FFFFFFFF) do
  begin
    h:=windows.OpenProcess(PROCESS_ALL_ACCESS,false,i);
    if h<>0 then
    begin
      modulename:='???';
      ths:=CreateToolhelp32Snapshot(TH32CS_SNAPMODULE,i);
      if ths<>0 then
      begin
        if Module32First(ths,me32) then
        begin
          x:=me32.szModule;
          modulename:=x;
        end;

        process[processcount]:=inttohex(i,8)+'-'+modulename;
        inc(processcount);
        if processcount>=10 then
          synchronize(drawprocesses);

        closehandle(ths);
      end;
      closehandle(h);
    end;

    if ((i mod 4096)=0) then
      if processcount>0 then synchronize(drawprocesses);

    inc(i);
  end;


  if processcount>0 then synchronize(drawprocesses);
end;

_________________


Last edited by lurc on Thu May 15, 2008 4:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Thu May 15, 2008 4:38 pm    Post subject: Reply with quote

CE detects if you wish to use the kernel driver or not then picks what to do from there.

Without the driver, it simply uses CreateToolhelp32snapshot. You can find the code for these in:

Without Driver: ProcessWindowUnit.as
With Driver: DBKKernel/processlist.c

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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