Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-31-2004, 16:17
GrosTuba
 
Posts: n/a
A typedef problem, maybe...

Hi

When you write
Code:
typedef void (*NotifyOnlineOrig)(DATE *,int);
, you are defining a type that is then recognized by the compiler, you are not declaring a variable at all.

You may try something like
Code:
typedef void (*t_NotifyOnlineOrig)(DATE *,int);
t_NotifyOnlineOrig NotifyOnlineOrig;
This way, you define a type AND a variable of this type that can be used to store a pointer to the old Notify routine. Of course, you may have to add or remove a few pointer indirections, but the basic idea is here...

Have a nice day

Tuba
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET dll hooking Avi_RE General Discussion 10 09-28-2023 07:09
API Hooking thomasantony General Discussion 5 04-22-2005 11:44
API-hooking MaRKuS-DJM General Discussion 11 03-25-2005 13:27


All times are GMT +8. The time now is 14:30.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )