GetTaskUserData |
Retrieves the userdata of a task. Userdata is a ULONG variable stored with each task. In this variable you can store whatever value you'd like. For instace an ID of which procedure that should be started (in case of a enduser-defiend dynamic menu), or maybe a reference address of an object or group.
Prototype:
GetTaskUserData(LONG HeaderID, LONG TaskID),ULONG
Arguments:
HeaderID |
The unique ID of the task's parent header |
TaskID |
The unique ID of the task you want change |
Returns
Returns an ULONG containing the task's userdata. If the task was not found, this function returns 0.
See also: