Maarten Lankhorst m.b.lankhorst@gmail.com writes:
I want to be able to rename the dll without having to worry about that line. That's why I'm getting the full file name. Easier to run tests that way.
You should use GetModuleHandleEx to increment the refcount directly from the module handle.