Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

LoadLibrary() hangs under vista

LoadLIbrary("xxx.dll") works fine on XP but hangs on Vista. Any clues?
0
kk8
Asked:
kk8
  • 2
2 Solutions
 
DanRollinsCommented:

Could you try loading the module with
   LoadLibraryEx()
  http://msdn.microsoft.com/en-us/library/ms684179.aspx
and see if the same error occurs?
0
 
kk8Author Commented:
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
0
 
kk8Author Commented:
Looks like I finally figured out, apparently its the project settings thats dragging the func into such behavior. A clean project just with loadlibrary works fine...
Thank you anyways
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now