SetActivityCoordinatorPolicyResourceCondition function (activitycoordinator.h)
Sets a resource’s desired condition for a policy. For resources the developer does not want their policy to monitor, they can set the resource’s condition to ACTIVITY_COORDINATOR_CONDITION_NOT_SET.
Syntax
HRESULT SetActivityCoordinatorPolicyResourceCondition(
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 the desired condition.
Return value
Returns an HRESULT.
Requirements
Requirement | Value |
---|---|
Header | activitycoordinator.h |