BOOL CopySid(DestinationSidLength, DestinationSid, SourceSid) | |||
DWORD DestinationSidLength; | |||
PSID DestinationSid; | |||
PSID SourceSid; |
The CopySid function copies the value of a source SID security identifier to a destination SID.
DestinationSidLength
Specifies the length, in bytes, of the destination SID buffer.
DestinationSid
Pointer to a buffer that the function will fill with a copy of the source SID.
SourceSid
Pointer to an SID data structure that the function will copy to the buffer pointed to by DestinationSid.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
EqualSid, GetLengthSid, InitializeSid, IsValidSid, GetSidIdentifierAuthority, GetSidLengthRequired, GetSidSubAuthority, GetSidSubAuthorityCount