DllImportSearchPath Enum
Definition
Specifies the paths that are used to search for DLLs that provide functions for platform invokes.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
public enum class DllImportSearchPath
public enum DllImportSearchPath
[System.Flags]
public enum DllImportSearchPath
type DllImportSearchPath =
[<System.Flags>]
type DllImportSearchPath =
Public Enum DllImportSearchPath
- Inheritance
- Attributes
Fields
ApplicationDirectory | 512 | Include the application directory in the DLL search path. |
AssemblyDirectory | 2 | When searching for assembly dependencies, include the directory that contains the assembly itself, and search that directory first. This value is used by the .NET Framework, before the paths are passed to the Win32 LoadLibraryEx function. |
LegacyBehavior | 0 | Search the application directory, and then call the Win32 LoadLibraryEx function with the |
SafeDirectories | 4096 | Include the application directory, the |
System32 | 2048 | Include the |
UseDllDirectoryForDependencies | 256 | Search for the dependencies of a DLL in the folder where the DLL is located before searching other folders. |
UserDirectories | 1024 | Include any path that was explicitly added to the process-wide search path by using the Win32 |
Remarks
Use the DefaultDllImportSearchPathsAttribute attribute to apply a set of paths to an entire assembly or to an individual platform invoke.