Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Allocates a new policy and pre-populates fields based on the supplied policy template enumeration. The caller can customize the policy further using SetActivityCoordinatorPolicyResourceCondition.
Syntax
HRESULT CreateActivityCoordinatorPolicy(
ACTIVITY_COORDINATOR_POLICY_TEMPLATE policyTemplate,
ACTIVITY_COORDINATOR_POLICY *policy
);
Parameters
policyTemplate
Supplies a policy template enumeration value.
policy
Supplies a pointer to an ACTIVITY_COORDINATOR_POLICY handle that receives the created policy handle.
Return value
Returns an HRESULT.
Remarks
The caller should subscribe to the policy to receive coordination notifications using SubscribeActivityCoordinatorPolicy. When no longer needed, the caller should destroy the policy using DestroyActivityCoordinatorPolicy.
Requirements
| Requirement | Value |
|---|---|
| Header | activitycoordinator.h |
| Library | OneCoreUAP.Lib |
See also
GetActivityCoordinatorPolicyResourceCondition
SetActivityCoordinatorPolicyResourceCondition
SubscribeActivityCoordinatorPolicy