Get profile path

Is there any way to get the profile path for the current user, other than looking in the registry? I mean, does any function (like GetUserName) retrieve the path to the profile of the current user? If such a function does not exist, is there any registry key I should read to get this path?
I've tried to read the key
[code]"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ProfileReconciliation\ProfileDirectory"[/code]
and it works under Win98 (provided that the system is configured to allow multiple users); however, does this key exist under Win2000 or XP? If not, is there any key that would contain the profile path, whatever Windows version is used?

Thank you, Steph.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories