Reputation: 17293
If I have a list of Windows account SIDs (strings like "S-1-5-21-16217043-3088031003-1644254475-1001") how can I get the name of Windows user accounts from them (stuff like "John Doe") using C++ and WinAPIs?
Upvotes: 3
Views: 7919
Reputation: 121971
See these WINAPI functions:
ConvertStringSidToSid()
, to convert the account SID strings to a SID
that is required as an argument to,LookupAccountSid()
Upvotes: 11