using:
char username[255+1];
DWORD username_len = 255+1;
GetUserName(username, &username_len);
i get the actual user name.
but how can i get the program folder name for execute a program?
the '%ProgramFiles(x86)%' on folder name string is ignored :(