GetCurrentTask
Returns the calling thread group’s current task number
#include <nwcntask.h> LONG GetCurrentTask (void);
This function returns the current task number.
The current task number is returned for the calling thread group.
SetCurrentTask