// 地址小的放前面
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