X
xuqy
Unregistered / Unconfirmed
GUEST, unregistred user!
本人实在看不懂如下代码,是关于捕捉系统的任意一函数调用的.
如何转化后在delphi中编译它.<要变成汇编吗?,怎么变>
我倾家荡产,奉献所有的分数 200分,
BOOL
InstallProbe1(void)
{
WORD selCS , selDS ;
char FAR * lpJmp ;
char FAR * lpCode ;
selCS = FP_SEG((void FAR *)ExtTextOut);
selDS = AllocCStoDSAlias(selCS ) ;
lpCode = MK_FP ( selDS , FP_OFF( (void FAR * ) ExtTextOut ) ) ;
_fmemcpy( OldCode , lpCode , 5 );
lpCode[0] = 0xEA ;
lpJmp = (char FAR * )&Jmp2Me;
lpCode[1]=lpJmp[0];
lpCode[2]=lpJmp[1];
lpCode[3]=lpJmp[2];
lpCode[4]=lpJmp[3];
FreeSelector(selDS );
return TRUE;
}
如何转化后在delphi中编译它.<要变成汇编吗?,怎么变>
我倾家荡产,奉献所有的分数 200分,
BOOL
InstallProbe1(void)
{
WORD selCS , selDS ;
char FAR * lpJmp ;
char FAR * lpCode ;
selCS = FP_SEG((void FAR *)ExtTextOut);
selDS = AllocCStoDSAlias(selCS ) ;
lpCode = MK_FP ( selDS , FP_OFF( (void FAR * ) ExtTextOut ) ) ;
_fmemcpy( OldCode , lpCode , 5 );
lpCode[0] = 0xEA ;
lpJmp = (char FAR * )&Jmp2Me;
lpCode[1]=lpJmp[0];
lpCode[2]=lpJmp[1];
lpCode[3]=lpJmp[2];
lpCode[4]=lpJmp[3];
FreeSelector(selDS );
return TRUE;
}