HANDLE GetCurrentTask( )
This function returns the handle of the currently executing task.
This function has no parameters.
The return value identifies the task if the function is successful. Otherwise, it is NULL.