UnsubscribeActivityCoordinatorPolicy function (activitycoordinator.h)

Destroys a subscription. Note that this routine waits for any in-progress callbacks to return before completing.

Caution

Do not call the routine from its subscription's callback. Doing so will crash the program.

Syntax

HRESULT UnsubscribeActivityCoordinatorPolicy(
  ACTIVITY_COORDINATOR_SUBSCRIPTION subscription
);

Parameters

subscription

Supplies a handle to the target subscription to be destroyed.

Return value

Returns an HRESULT.

Requirements

Requirement Value
Header activitycoordinator.h

See also

SubscribeActivityCoordinatorPolicy

ACTIVITY_COORDINATOR_CALLBACK