How do you detect a users home directory?

How do you detect a users home directory in windows? By home directory I mean ("C:/Users/*This*RandomName*This*/
http://www.cplusplus.com/forum/beginner/24235/#msg127880

You responded there just before I pressed "Submit". :-)
can you show me an example of how to use that?
Do you just want to know how to do this one thing? Or are you trying to understand what it is that you are doing?
duoas helped me on the other thread, thanks
Topic archived. No new replies allowed.