This article demonstrates how to determine the filepath of a DLL from within the DLL.var Buffer : Array[0..MAX_PATH] of char;begin FillChar(Buffer[0],MAX_PATH+1,#0); GetModuleFileName(HInstance,Buffer,Max_path);end;