Group: Security - Library: advapi32
GetFileOwner - Get the owner of an NTFS file
BOOL GetSecurityDescriptorOwner(
PSECURITY_DESCRIPTOR pSecurityDescriptor,
PSID* pOwner,
LPBOOL lpbOwnerDefaulted
);
DECLARE INTEGER GetSecurityDescriptorOwner IN advapi32;
STRING @ pSecurityDescriptor,;
INTEGER @ pOwner,;
INTEGER @ lpbOwnerDefaulted
pSecurityDescriptor [in] Pointer to a SECURITY_DESCRIPTOR structure whose owner information the function retrieves.
pOwner [out] Pointer to a pointer to a SID identifying the owner when the function returns.
lpbOwnerDefaulted [out] Pointer to a flag set to the value of the SE_OWNER_DEFAULTED flag in the SECURITY_DESCRIPTOR_CONTROL structure when the function returns.
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.