function FindDllInDllsTree(const DllName, StartPath, SubDir: string): string;
| DllName | string |
| StartPath | string |
| SubDir | string |
stringFindDllInDllsTree 从 StartPath 向上遍历,并在 DLLs\SubDir 文件夹中探测所请求的 PDFium DLL
它支持可执行文件位于仓库或安装程序输出树下方的应用程序布局
StartPath 之上的驱动器或网络共享根目录会被跳过,因此建在卷根目录下的 DLLs 文件夹永远不会被使用DllPath := FindDllInDllsTree('pdfium.dll', GetApplicationPath, 'Win64');