NPA_Cancel_Thread
Cancels asynchronous blocking or non-blocking threads of execution scheduled for an NWPA application.
LONG NPA_Cancel_Thread ( LONG npaHandle, LONG (*executeRoutine)(), LONG parameter );
The following table lists return values and descriptions.
NPA_Cancel_Thread is used to cancel an instance of an asynchronous thread that was spawned using NPA_Spawn_Thread. NWPA uses the input executeRoutine and parameter parameters to identify the thread to cancel. Therefore, these two parameters must match exactly with the parameters passed to NPA_Spawn_Thread.
A CDM or HAM must make a separate call for each spawned thread it cancels. Additionally, a CDM or HAM must call this function for all pending threads that it spawned before it can unload.