I advice you to either keep that dll in the same folder as the rest of your application, or have a .Net assembly in the same directory as the dll you want to use DllImport on. Then you can use dynamic loading by using reflection on the assembly that you use as an interface between your code and that assembly.