How to retreive SID's byte array

Posted by rursw1 on Stack Overflow See other posts from Stack Overflow or by rursw1
Published on 2010-03-14T14:52:58Z Indexed on 2010/03/14 14:55 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

Hello experts, How can I convert a PSID type into a byte array that contains the byte value of the SID? Something like: PSID pSid; byte sidBytes[68];//Max. length of SID in bytes is 68 if(GetAccountSid( NULL, // default lookup logic AccountName,// account to obtain SID &pSid // buffer to allocate to contain resultant SID ) { ConvertPSIDToByteArray(pSid, sidBytes); } --how should I write the function ConvertPSIDToByteArray?

Thank you!

© Stack Overflow or respective owner

Related posts about security

Related posts about authentication