@Alexandre
If possible, I'd recommend using wine_get_unix_file_name() and wine_get_dos_file_name() from kernel32, the NT ones are considered more internal. The kernel32 ones should be more stable across versions.
Thanks a lot, good to know. The signatures of those functions have not been changed for at least 12 years.
Potentially stupid question: Why are Wine's "Windows" paths using unicode (wchar) while the unix counterparts are not (char)? It's the same both in the kernel32 and NT APIs.
@Fabian
Can't you use "winepath" for the conversion?
I can, but this can be agonizingly slow - compared to a direct call to the above mentioned APIs. Starting a complete new (sub-) process seems a bit of an overkill for this kind of task.
Sebastian