Hello,
I try to get the address of LockResource function and the debugger display the address of SetHandleCount function.
Does anybody know what's wrong?
(http://img87.imageshack.us/img87/1794/pbod7.th.png) (http://img87.imageshack.us/my.php?image=pbod7.png)
Here is the piece of code in order to reproduce the problem:
#include <windows.h>
typedef LPVOID (__stdcall* apiLockResource) (HGLOBAL hResData);
apiLockResource MyLockResource;
int main()
{
HMODULE hmod;
hmod = LoadLibrary("kernel32.dll");
MyLockResource = (apiLockResource)GetProcAddress(hmod, "LockResource");
FreeLibrary(hmod);
return 0;
}
For information, I use Windows 2000 sp4 and the last nightly build (10/29/2006).
I don't know if it is a bug from C::B or the compiler (I use GCC GNU Compiler).
I hope you could give me some informations about this behavior.
Thanks and have a nice day.