The RtlCopySid routine copies the value of a security identifier (SID) to a buffer.
NTSYSAPI NTSTATUS RtlCopySid( ULONG DestinationSidLength, PSID DestinationSid, PSID SourceSid );
Length, in bytes, of the buffer to receive the copy of the SID.
Pointer to a caller-allocated buffer to receive a copy of the source SID structure. The buffer must be at least sizeof(SID),
Pointer to the source SID structure to be copied.
RtlCopySid returns STATUS_SUCCESS if the SID was successfully copied. Otherwise, it returns an NTSTATUS value such as one of the following:
||The DestinationSid buffer was not large enough to receive a copy of the SID.|
For more information about security and access control, see the documentation on these topics in the Microsoft Windows SDK.
|Header||ntifs.h (include Ntifs.h)|
|DLL||NtosKrnl.exe (kernel mode); Ntdll.dll (user mode)|