Method ITcTask:GetPriority

Querying the task priority.

Syntax

virtual HRESULT TCOMAPI GetPriority(PULONG 
pPriority)=0;

Method ITcTask:GetPriority 1: Return value

If successful, S_OK ("0") or another positive value will be returned, cf. Return values. Extended messages refer in particular to the column HRESULT in ADS Return Codes.

E_POINTER if the parameter pPriority = NULL.

Parameter

Name

Type

Description

pPriority

PULONG

[out] Priority value of the task is stored in this parameter.

Sample30: Timing Measurement illustrates the use of this method.