| View previous topic :: View next topic |
| Author |
Message |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Thu May 15, 2008 3:08 am Post subject: [Help] PspCidTable |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Thu May 15, 2008 5:14 am Post subject: |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu May 15, 2008 7:52 am Post subject: |
|
|
Thanks i was lookin for this too.
When i get home im going to download it, cuz im at school right now which doesnt even have WinRAR! (*goes and downloads*)
_________________
|
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Thu May 15, 2008 8:37 am Post subject: |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu May 15, 2008 8:38 am Post subject: |
|
|
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 |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Thu May 15, 2008 4:19 pm Post subject: |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Thu May 15, 2008 4:37 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Thu May 15, 2008 4:38 pm Post subject: |
|
|
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 |
|
 |
|