Get DLL path at runtime
You can use the GetModuleHandleEx function and get the handle to a static function in your DLL. You’ll find more information here. After that you can use GetModuleFileName to get the path from the handle you just obtained. More information on that call is here. A complete example: char path[MAX_PATH]; HMODULE hm = NULL; if … Read more