Page 1 of 1

Get SID of current user

Posted: Wed Jan 29, 2014 3:10 am
by geosjr
I need to determine the Security Identifier (SID) of the current user. How can I solve this?

Thanks!

Re: Get SID of current user

Posted: Wed Jan 29, 2014 11:34 am
by FrancescoT
Dear User,

you need to develop a custom code for that, in a DLL or an EXE.
If I remember correctly this information can be retrieved using the "GetTokenInformation" WIN API (see Microsoft documentation for more details).

Then, call the DLL or the EXE from your setup script.

Regards