forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to hook a func in prx loaded(PSP_MEMORY_PARTITION_USER)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Mon Oct 08, 2007 7:05 pm    Post subject: how to hook a func in prx loaded(PSP_MEMORY_PARTITION_USER) Reply with quote

use the code in psplink, I can hook a func in prx loaded(PSP_MEMORY_PARTITION_KERNEL)

but it can not hook a func in prx(PSP_MEMORY_PARTITION_USER).

anyone know how to do it ?
Back to top
View user's profile Send private message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Tue Oct 09, 2007 1:09 pm    Post subject: Reply with quote

no one know this? :(

I can get the func exported address like 0x9xxxxxx, is not kernel memory address,
so I can not find out the syscall_addr.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed Oct 10, 2007 2:23 am    Post subject: Reply with quote

You can probably hook the import (instead of the export in psplink), so find the module which is calling the exported function and do a 'apihook @importmod ImportLIb @function/nid
Back to top
View user's profile Send private message
cooleyes



Joined: 18 May 2006
Posts: 125

PostPosted: Wed Oct 10, 2007 2:37 pm    Post subject: Reply with quote

TyRaNiD wrote:
You can probably hook the import (instead of the export in psplink), so find the module which is calling the exported function and do a 'apihook @importmod ImportLIb @function/nid


how can Ido to find out the func imported address?
can you give me a sample code ?
Back to top
View user's profile Send private message
whazilla



Joined: 09 Sep 2006
Posts: 13

PostPosted: Fri Apr 18, 2008 6:21 am    Post subject: Reply with quote

hi,

cant u find the exports/imports with prxtool ?
Back to top
View user's profile Send private message
peb



Joined: 12 Mar 2007
Posts: 26

PostPosted: Sat Apr 19, 2008 7:26 am    Post subject: Reply with quote

Maybe psplink hook's could help you.

I tried to use it, the code is working and I think he could help you, but me I have little problem :

I call psplink hook's and I run the EBOOT2 which not start ... when I quit EBOOT1, the EBOOT2 start! It's normal when you read the code, but It's not same result like psplink ;)

I think you can use this code but change only LoadExec by LoadModule.


EDIT: sorry, I didn't see you use this actualy XD
_________________
Sorry for my English, I'm french.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 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


Powered by phpBB © 2001, 2005 phpBB Group