IPixFactory::CreateCancellationToken method

Creates a cancellation token for use with APIs that support cancellation.

Syntax

HRESULT CreateCancellationToken(
    REFIID riid,
    void ** cancellationToken);

Parameters

riid [in]

The interface IID of the token to be returned. Expected: IPixCancellationToken

cancellationToken [out]

Pointer to the returned interface.

Returns

S_OK if the cancellation token was created successfully, otherwise an error code.

See also