GetSecurityDescriptorOwner
The GetSecurityDescriptorOwner
function retrieves the owner information from a security descriptor.
BOOL GetSecurityDescriptorOwner(
PSECURITY_DESCRIPTOR pSecurityDescriptor, |
// address of security
descriptor |
PSID *pOwner, |
// address of
pointer to owner security identifier (SID) |
LPBOOL lpbOwnerDefaulted |
// address of flag
for default |
); |
|
Parameters
pSecurityDescriptor
Points to a SECURITY_DESCRIPTOR
pOwner
Points to a
pointer to a SID
lpbOwnerDefaulted
Points to a
flag set to the value of the SE_OWNER_DEFAULTED flag in the SECURITY_DESCRIPTOR_CONTROL
Return Values
If the
function succeeds, the return value is nonzero.
If the
function fails, the return value is zero. To get extended error information,
call GetLastError
See Also