BOOL MakeSelfRelativeSD(AbsoluteSecurityDescriptor, SelfRelativeSecurityDescriptor, lpdwBufferLength) | |||
PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor; | |||
PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor; | |||
LPDWORD lpdwBufferLength; |
The MakeSelfRelativeSD function creates a self-relative format version of an absolute format security descriptor.
AbsoluteSecurityDescriptor
Pointer to an absolute format SECURITY_DESCRIPTOR data structure. The function will create a self-relative format version of this security descriptor. The function will not modify this security descriptor.
SelfRelativeSecurityDescriptor
Pointer to a buffer that the function will fill with a self-relative format security descriptor.
lpdwBufferLength
Pointer to a variable that specifies the size of the buffer pointed to by SelfRelativeSecurityDescriptor. If the buffer is not large enough, the function fails, and sets the variable to the minimum buffer size required.
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.
MakeAbsoluteSD