http://stackoverflow.com/questions/2043/can-a-windows-dll-retrieve-its-own-filename A windows exe file has access to the command string which invoked it, including its path and filename. eg. C:\MyApp\MyApp.exe --help. But this is not so for a dll inv