Link to home
Start Free TrialLog in
Avatar of kk8
kk8

asked on

LoadLibrary() hangs under vista

LoadLIbrary("xxx.dll") works fine on XP but hangs on Vista. Any clues?
SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kk8
kk8

ASKER

Hi Dan,

Thanks for helping me out here. I did try that before I posted, the function has a 3rd argument with the choices of

0. NULL
1. LOAD_IGNORE_CODE_AUTHZ_LEVEL
2. LOAD_WITH_ALTERED_SEARCH_PATH

3. DONT_RESOLVE_DLL_REFERENCES
4. LOAD_LIBRARY_AS_DATAFILE
5. LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE
6. LOAD_LIBRARY_AS_IMAGE_RESOURCE


with 0-2, the behavior is same as LoadLibrary, for others it does not hang but does not get the job right. GetProcAddress fails to extract the correct loc.

Any clues? Thanks
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial