I’m looking for a way to extract the computer SID using Delphi code. There’s a tool called PsGetSid from SysInternals that does this, but I can’t use it in my application. I searched for a code example in Google and couldn’t find one.
How can I achieve this in Delphi?
Please help.
This is a sample using the
LookupAccountNameWinAPi function as @MikeKwan suggest.