Using this code in c#:
WindowsIdentity.GetCurrent().User.Value;
And getting output:
S-1-5-21-3050176684-2277112922-4090480026-1001
How to get same output in c++?
Using this code in c#:
WindowsIdentity.GetCurrent().User.Value;
And getting output:
S-1-5-21-3050176684-2277112922-4090480026-1001
How to get same output in c++?
Here is some code on how you can get the SID for an account name on the local computer using
LookupAccountName
(Link to API):