共用方式為


GetExecutionContextId Function

Returns a unique identifier that can be assigned to an execution context that implements the IExecutionContext interface.

unsigned int __cdecl GetExecutionContextId();

Return Value

A unique identifier for an execution context.

Remarks

Use this method to obtain an identifier for your execution context before you pass an IExecutionContext interface as a parameter to any of the methods offered by the Resource Manager.

Requirements

Header: concrtrm.h

Namespace: concurrency

See Also

Reference

concurrency Namespace