mscorlib(4.0.0.0) API with additions
DllImportSearchPath.cs
2 {
4  [Flags]
5  [__DynamicallyInvokable]
6  public enum DllImportSearchPath
7  {
10  [__DynamicallyInvokable]
13  [__DynamicallyInvokable]
14  ApplicationDirectory = 0x200,
16  [__DynamicallyInvokable]
17  UserDirectories = 0x400,
19  [__DynamicallyInvokable]
20  System32 = 0x800,
22  [__DynamicallyInvokable]
23  SafeDirectories = 0x1000,
25  [__DynamicallyInvokable]
26  AssemblyDirectory = 0x2,
28  [__DynamicallyInvokable]
29  LegacyBehavior = 0x0
30  }
31 }
Search the application directory, and then call the Win32 LoadLibraryEx function with the LOAD_WITH_A...
DllImportSearchPath
Specifies the paths that are used to search for DLLs that provide functions for platform invokes.
Include the application directory, the %WinDir%\System32 directory, and user directories in the DLL s...
Include the %WinDir%\System32 directory in the DLL search path.
Search for the dependencies of a DLL in the folder where the DLL is located before searching other fo...
When searching for assembly dependencies, include the directory that contains the assembly itself,...
Include the application directory in the DLL search path.
Include any path that was explicitly added to the process-wide search path by using the Win32 AddDllD...