GetProcAddress() on “GetProcAddress” in VB6 returns wrong address

Found on: Around October 2009
Applicable systems: Visual Basic 6.0, Windows Vista SP1 (not tested with other versions)

I was working with code injection in another application using VB6 when I found out that address returned by ‘GetProcAddress(…, “GetProcAddress”)’ is wrong. I confirmed this by attaching a debugger (WinDbg) and tracing the returned address. I also tested it in C++ which returned the correct address. The cause of this issue is currently unknown.

Currently I have no solution for this in VB6 because I don’t have the required level of debugging knowledge to investigate the cause of this problem yet. I would recommend porting to C++. At least that was what I did!


Leave a reply here, thanks!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s