• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Value of LOAD_LIBRARY_AS_DATAFILE

Greetings, C++ Experts,

I program in VB mainly. To extend VB functionality, I dabble in APIs. I want to use LoadLibraryEx, and MSDN told me the Flags parameter could be set to these constants:
DONT_RESOLVE_DLL_REFERENCE
LOAD_LIBRARY_AS_DATAFILE
LOAD_WITH_ALTERED_SEARCH_PATH

I planned on using al three of them, but hey, in VB those constants aren't declared; they have no value. By coincidence I found the value for DONT_RESOLVE_DLL_REFERENCE (&H1).

Do you know the values of the other two constants? Do you know where I can find this information for future reference?

Imagine!
0
OmegaJunior
Asked:
OmegaJunior
1 Solution
 
nil_dibCommented:
the values are:

DONT_RESOLVE_DLL_REFERENCES    1
LOAD_LIBRARY_AS_DATAFILE       2
LOAD_WITH_ALTERED_SEARCH_PATH  3

can be found in "winbase.h"

nil_dib
0
 
OmegaJuniorAuthor Commented:
Thank you very much, nil_dib!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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