I want to get a dll\'s directory (or file) path from within its code. (not the program\'s .exe file path)
I\'ve tried a few methods I\'ve found:
HMODULE hmod = GetCurrentModule(); TCHAR szPath[MAX_PATH + 1] = 0; DWORD dwLen = GetModuleFileHName(hmod, szPath, MAX_PATH);