GetProcAddress returns wrong address for itself
-
Hello everybody I have observed a strange behaviour in Win Vista and 7 when I call the GetProcAddress to resolve it self GetProcAddress(GetModuleHandle("kernel32.dll"),"GetProcAddress") returns wrong value. I compare the return value with the windbg and its way different (though in a valid 0x7000000-0x7ffffff range). I 've seen some reports on the web about it but I dont know how to overcome this problem. Any ideas? Thanx
-
Hello everybody I have observed a strange behaviour in Win Vista and 7 when I call the GetProcAddress to resolve it self GetProcAddress(GetModuleHandle("kernel32.dll"),"GetProcAddress") returns wrong value. I compare the return value with the windbg and its way different (though in a valid 0x7000000-0x7ffffff range). I 've seen some reports on the web about it but I dont know how to overcome this problem. Any ideas? Thanx
What addresses are you seeing? In the VS debugger, I see my program enter the same address (0x76E81202) that both
&GetProcAddress
andGetProcAddress(GetModuleHandle(L"kernel32.dll"),"GetProcAddress")
return - this is under Windows 7 x64.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
What addresses are you seeing? In the VS debugger, I see my program enter the same address (0x76E81202) that both
&GetProcAddress
andGetProcAddress(GetModuleHandle(L"kernel32.dll"),"GetProcAddress")
return - this is under Windows 7 x64.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Attach the Windbg and look for GetProcAddress it should be a different one. In my case it points to GetProcAddressStub instead of GetProcAddress. In some other examples I tried involving dll injection the address is far more out of the kernel32.dll range