How to fetch the user profile given a SID?
I need to fetch the user default profile directory, given its username or SID.

How can I do it?

GetUserProfileDirectory() seems to work only for the current account.


How to fetch the user profile given a SID?
===

I need to fetch the user default profile directory, given its username or SID.

How can I do it?

GetUserProfileDirectory() seems to work only for the current account.

