Method CheckLibraryPath
CheckLibraryPath(string, string, string, out string)
Checks whether the specified library file exists in the given root path, trying platform-specific and architecture folders first.
public static bool CheckLibraryPath(string root, string arch, string libWithExt, out string foundPath)
Parameters
rootstringThe base directory to search. May be
nullor empty.archstringThe process architecture folder name (for example, "x64", "arm").
libWithExtstringThe library file name including extension.
foundPathstringWhen the method returns
true, contains the full path to the discovered library file; otherwisenull.
Returns
- bool
trueif the library file was found in the given root path; otherwisefalse.