GetActivityCoordinatorPolicyResourceCondition function (activitycoordinator.h)

Gets a resource’s desired condition for a policy. Unmonitored resources in a policy are indicated by ACTIVITY_COORDINATOR_CONDITION_NOT_SET.

Syntax

HRESULT GetActivityCoordinatorPolicyResourceCondition(
  ACTIVITY_COORDINATOR_POLICY    policy,
  ACTIVITY_COORDINATOR_RESOURCE  resource,
  ACTIVITY_COORDINATOR_CONDITION *condition
);

Parameters

policy

Supplies a handle to the target policy.

resource

Supplies the resource of interest.

condition

Supplies a pointer to a buffer that receives the resource’s configured condition.

Return value

Returns an HRESULT.

Requirements

Requirement Value
Header activitycoordinator.h

See also

ACTIVITY_COORDINATOR_CONDITION

ACTIVITY_COORDINATOR_RESOURCE