| View previous topic :: View next topic |
| Author |
Message |
peb
Joined: 12 Mar 2007 Posts: 26
|
Posted: Mon Feb 18, 2008 4:18 am Post subject: sceKernelFindModuleByName function in User mode... |
|
|
Hi!
Well, I want to use this function :
| Code: |
sceKernelFindModuleByName("dummy");
|
but I use the firmware 3.71, so I can't use kernel mode... but I want use this function or an other which is similar. thx for your help ;) _________________ Sorry for my English, I'm french. |
|
| Back to top |
|
 |
Hellcat
Joined: 24 Jan 2007 Posts: 84
|
Posted: Tue Feb 19, 2008 2:11 pm Post subject: |
|
|
Make a seperate .PRX that is a kernel one, load it from your usermode .PRX and call an exported function that performs the sceKernelFindModuleByName().
Then return the results back to the calling function in the usermode .PRX
:) |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Tue Feb 19, 2008 3:53 pm Post subject: |
|
|
| Or perhaps just enumerate all modules and do a manual search... |
|
| Back to top |
|
 |
peb
Joined: 12 Mar 2007 Posts: 26
|
Posted: Wed Feb 20, 2008 4:08 am Post subject: |
|
|
thx for your answer, I'll see that and I'll put my source code if I find ;) _________________ Sorry for my English, I'm french. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Wed Feb 20, 2008 4:39 am Post subject: |
|
|
| But enumeration in user mode will find only user mode modules (if that is what you want, then all fine). And using sceKernelFindModuleByName in kernel mode and returning the result as it is to user won't help either: it returns a kernel pointer, in the moment user code tries to manipulate it, it would crash, so it is probably better to copy the pointer to a user buffer in the kernel function, unless you only want to check if is NULL or no NULL, in that case, it is fine too :) |
|
| Back to top |
|
 |
|