最好改dll,可以不要调用getmodulefilename。
改成其他getsystempath  or getwindowdirectory等。。
具体看你希望把你的配置文件放哪了。
api函数的名称,我记不得了。不过msdn会帮你记得。
:)