Win9X下HOOK GDI的问题

// 地址小的放前面
MYAPIINFO myapi_info[] =
{
#ifdef WIN95
 {"GDI32.DLL", "TextOutA", 5, "myTextOutA", 2},
 {"GDI32.DLL", "ExtTextOutW", 8, "myExtTextOutW", 0, "myExtTextOutA"},
#else
 {"GDI32.DLL", "TextOutW", 5, "myTextOutW"},
 {"GDI32.DLL", "TextOutA", 5, "myTextOutA"},
 {"GDI32.DLL", "ExtTextOutW", 8, "myExtTextOutW"}, 
#endif
 {"GDI32.DLL", "ExtTextOutA", 8, "myExtTextOutA"},
 {"GDI32.DLL", "StretchDIBits" ,13,"myStretchDIBits"},
 {"GDI32.DLL", "StretchBlt" ,11,"myStretchBlt"},
 {"GDI32.DLL", "BitBlt" ,9,"myBitBlt"},
#ifdef WIN95
 {"GDI32.DLL", "StartPage" ,1,"myStartPage"},
 {"GDI32.DLL", "EndPage" ,1,"myEndPage"},
#endif
 {NULL}
};

  用的是CHOOKAPI代码,上面是我的mydll,想实现HOOK打印内容,在Win2000/XP下面运行正常,但在WIn98就有问题,如果注掉{"GDI32.DLL", "StartPage" ,1,"myStartPage"}, {"GDI32.DLL", "EndPage" ,1,"myEndPage"},则正常,在WIn9X下如何HOOK StartPage 和EndPage?请高手回答,多谢!xizao2008@126.com

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值