Is it possible to get the filename of the DLL the current code is in? Of course I could hardcode it but somebody could later change the output filename from "a.dll" to "b.dll" - is it possible to obtain it programatically? Hope the question is clear... I could use the GetModuleFileName function but I then need to get the module handle. Any suggestion? Thanks in advance.