![]() |
|
#1
|
|||
|
|||
|
C++ Help (Hooking a function)
Say i have the sdk of a application with such a function defined.
Code:
void Check_Registration (
int Registered,
int Licenses,
int LicenseType,
int ChkSum,
int RESERVEDA,
int ( *Callback_CheckDate )( DATE *pDATE ),
void ( *Callback_NotifyOnline)( DATE *pDate, int ChkSum ) )
{
}
Code:
typedef void (*NotifyOnlineOrig)(DATE *,int); Code:
void NotifyOnlineNew ( DATE *pDate, int ChkSum)
{
NotifyOnlineOrig(pDate,ChkSum);
}
Code:
void Check_Registration (
int Registered,
int Licenses,
int LicenseType,
int ChkSum,
int RESERVEDA,
int ( *Callback_CheckDate )( DATE *pDATE ),
void ( *Callback_NotifyOnline)( DATE *pDate, int ChkSum ) )
{
NotifyOnlineOrig=Callback_NotifyOnline;
Callback_NotifyOnline=NotifyOnlineNew;
}
Thanks
|
|
|
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 |