如何將PSID類型轉換爲包含SID的字節值的字節數組? 喜歡的東西:如何檢索SID的字節數組
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);
}
- 如何應我寫的函數ConvertPSIDToByteArray?
'68 = SECURITY_MAX_SID_SIZE' – 2016-12-04 04:26:09