Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
3.89/5 (2 votes)
See more:
Hi
I hooked ThaiToJDay and JDayToThai functions with easyhook successfully (these functions are in ONETUTIL.dll , dll of Sharepoint 2010)

But when i attached my project to IIS
It didn't work ,I mean my hooked function was not called !

Can any body help me please?
Posted

I've done same procedure with no problems please make sure:
1. You are using Thai calendars on ur sharepoint site.
2. Attach to w3p process using right code type, i mean Native or Managed.
3. Please make sure you are hooking the code at the right moment it takes a while before onetutil is atually loaded.
4. Make sure you get the right address. For eample if you are using GetProcAddress, you should use the full decorated name of ThaiToJDay, use dumpbin to find the fully decorated name, it should be something like:
?HijriToJDay@IntlCal@@SIJABUDateInfo@@AAJHPBJ@Z=?My_HijriToJDay@@YGHPAX0@Z
thats for Hijri ofcourse.

By he way are you using easyhook Native or Managed hooking, I wonder if it could be correctly hooked in managed mode.
 
Share this answer
 
v2
Comments
mahtab68 1-Oct-11 7:31am    
Thanks I try to do every 4 point
But I think u mean FileMon Project (code plex/EasyHook 2.6 Source Code/examples) is not suitable for this case !right?
Is there any unmanaged source code in this Directory (Code plex/EasyHook 2.6 Source Code) which I can use it?

Thanks
Hi mahtab,
did you find any solution ?
 
Share this answer
 
Comments
ZurdoDev 22-Apr-14 15:39pm    
This is not a solution.
can you help me how can I hook onetutil.dll ?
I monitoring this dll with API Monitor but the functions are not understandable !
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900