Arjun babu
Arjun babu

Reputation: 617

Why NetUserGetInfo does not give me the users home directory?

i am using netusergetinfo function in my c++ project.

the function works fine.

But it cant give the home directory value.it comes null value.

How can i achieve this?

Upvotes: 0

Views: 294

Answers (1)

Jonathan Potter
Jonathan Potter

Reputation: 37132

You can use the SHGetKnownFolderPath function (with FOLDERID_Profile) to get the profile directory for a specified user.

Upvotes: 2

Related Questions