get_descriptor_owner


bool get_descriptor_owner(void* security,
                          identity** owner,
                          bool* defaulted)

This function obtains a pointer to the identity of the owner of the descriptor.

Parameters

void* security

A pointer to the whose owner is being queried.

identity** owner

A pointer to a variable that is updated to point at the security identity of the owner of the descriptor.

bool* defaulted

If non-null, this parameter points to a variable that is updated to indicate whether the owner identity was sourced via a default mechanism. The descriptor control flag descriptor_control::OwnerDefaulted determines the value returned. If null is specified, this parameter is ignored.

Return

bool

true The function succeeded.
false The call failed.