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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -