in 98,I use GetProcAddress to get the address of CloseHandle, but always get the address of FindCloseChangeNotification.
in XP,it's Ok.
why???anybody can help me?
Posted on 2003-05-04 04:55:48 by dyna
How do you know you get the address of FindCloseChangeNotification? API functions can change address between different versions of Windoze, MS will *try* not to do it, but if they do then they are not necessarily going to tell everyone about it. Due to the wonders of load time relocating and fixing-up, if MS do change the position of a function then the change will be totally transparent to your app.

If you are using LoadLibrary or GetModuleHandle and GetProcAddress correctly, then the address being returned will be correct. Make sure you are supplying the correct module handle, and you are passing the correct string for the function name.
Posted on 2003-05-04 06:12:31 by sluggy
Thank you. but i think i did the right way, because when i used GetProcAddress to get
other API address in 98, the result is right.
Also, i used PEditor to open the kernel32.dll to confirm, it's right.

strange,isn't it?
Posted on 2003-05-04 09:11:36 by dyna
I suppose it would be better that you post some codes to show us how you use GetProcAddress.
Posted on 2003-05-04 09:24:44 by roticv
CloseHandle and FindCloseChangeNotification are actually the same on 98, so nothing to worry about here ;)
Posted on 2003-05-04 10:12:48 by Tola
yes, i get it.
thank u very much.
Posted on 2003-05-05 13:53:09 by dyna