- Use SeQuerySecurityDescriptorInfo() to retrieve an objects security descriptor.