Nigel wrote:
Is there a way you can get the path to the currently running instance instead of hardcoding it? Then it would work even if winefontcfg isn't on the PATH.
- GetFullPathNameW(exename, MAXSTRLEN, szFullPathName, NULL);
That just prepends the current directory onto the given filename, which is not what you want, I think.
I think you want something like GetModuleFileName(NULL, szPathFullName, MAXSTRLEN).