Windows user home folder in C (MinGW) -
i'm trying port application written in c linux windows.
at moment i'm done fixing 'hard' parts missing posix features , like.
the application compiles, links , works on windows (except fork() stuff replaced windows service code later).
the problem i'm having within msys shell works (this maps unix paths me).
outside of msys shell won't work because ~ not available.
i'm looking best way set windows user home within #ifdef stuff.
i read %userprofile%
somewhere doesn't seem work.
use shgetknownfolderpath
(vista+) or shgetfolderpath
depending on windows version.
Comments
Post a Comment