Process.SetDllDirectory
Adds a directory to the search path used to locate DLLs for the application.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
Process
|
13.1 |
❌ No |
✅ Yes |
❌ No |
✅ Yes, on Windows |
❌ No |
MBS( "Process.SetDllDirectory"; Path )
More
MBS(
"Process.SetDllDirectory"; /* Adds a directory to the search path used to locate DLLs for the application. */
$Path) /* The new native path.e.g. "C:\Test" */
Less
Parameters
Parameter |
Description |
Example |
Path |
The new native path. |
"C:\Test" |
Result
Returns OK or error.
Description
Adds a directory to the search path used to locate DLLs for the application.
The directory to be added to the search path.
If this parameter is an empty string, the call restores the default search order.
The SetDllDirectory function affects all subsequent calls to the Process.LoadLibrary functions. It also effectively disables safe DLL search mode while the specified directory is in the search path.
After calling SetDllDirectory, the standard DLL search path is:
1. The directory from which the application loaded.
2. The directory specified by the pathName parameter.
3. The system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is System32.
4. The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System.
5. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
6. The directories that are listed in the PATH environment variable.
Each time the SetDllDirectory function is called, it replaces the directory specified in the previous SetDllDirectory call.
Examples
Set to plugin folder:
MBS( "Process.SetDllDirectory"; "C:\Users\cs\AppData\Local\FileMaker\Extensions" )
See also
Release notes
Blog Entries
This function checks for a license.
Created 3th March 2023, last changed 3th March 2023
Process.SetCurrentDirectory
-
Process.SetFrontMost