IAPI::AddTask

property AddTask.

Adds a new task into a thread pool.

This task will be transmitted by onRun() callback to be started and continued, otherwise by onAbort()

 

HRESULT AddTask(
  long hTaskQueueObject,
  long task_localstorage,
  long *pVal
);

Parameters

hTaskQueueObject

[in] .   Handle of the thread pool

task_localstorage

[in] .   Value associated with the current task

pVal

[out, retval] The returned value is 1 (success) or 0 (failure)

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI