Anyway, this is my code:
Code: Select all
HOSTENT FAR * hook_gethostbyname ( const char FAR * name )
{
if(nexthook_gethostbyname == NULL)
{
//this sucks
return NULL;
}
return nexthook_gethostbyname( name );
}
I've updated to the latest version (2.1.7.0) and I get the same exact thingL
Under Internet Explorer 6, the above hook works great. Even the "complicated version" of my hook is rock solid.
When the same code in IE 5.5, however, I get the "send" or "don't send" box that IE puts up when it has an exception. The exception is generated sometime after I call nexthook_gethostbyname.
Does anyone have any ideas?
ws2_32.dll version is 5.0.2195.6601
Modified: Thursday, June 19, 2003
When I update IE6, ws2_32.dll version stays the same.
Also, I just tried hooking the function this way:
Code: Select all
HookAPI(
"ws2_32.dll",
"gethostbyname",
hook_gethostbyname,
(PVOID*) &nexthook_gethostbyname);
Code: Select all
HookCode(
gethostbyname,
hook_gethostbyname,
(PVOID*) &nexthook_gethostbyname);
Also, nexthook_gethostbyname returns successfully. I get a return value everything looks great. Then I return the results I got and... crash...
Any ideas?
-Robert