How to get USER ACCOUNT ID in windows?
I'm trying to get user account id in windows, but no success. I tried QProcess but isn't possible.
C# gives this in below code -
int sessionId = System.Diagnostics.Process.GetCurrentProcess().SessionId;
Here is the screen shot of task manager which shows you the ID of user - https://hub.mangoapps.com/sf/ODE0MDRfMTMwMDg1Ng
Thanks in advance.
Here are some links that might help you
@matobodo Thanks! The links helped.
Get process id from GetCurrentProcessID() & ProcessIdToSessionId() gives you session id by inputting process id.
#include<windows.h> to access these methods.