DXTMTASKINFO Structure

Describes a task to be performed by a DXTaskManager (Task Manager) object.

Syntax

typedef struct DXTMTASKINFO
    {
        PVOID               pfnTaskProc;       
        PVOID               pTaskData;         
        PVOID               pfnCompletionAPC;  
        DWORD               dwCompletionData;  
        const GUID*         pRequestID;        
    } DXTMTASKINFO;

Members

pfnTaskProc
Pointer to the function to execute.
pTaskData
Pointer to the task data used for the function call referred to by pfnTaskProc.
pfnCompletionAPC
Pointer to an asynchronous procedure call function.
dwCompletionData
Pointer to the data used for the asynchronous procedure call referred to by the pfnCompletionAPC member.
pRequestID
A GUID that uniquely identifies the task to the Task Manager. of tasks.

Remarks

Using this structure for task management requires that you have already implemented functions for the task manager to execute. This is typically done in C++ by adding the following code to your .h file for each function you plan to use.

	DXTASKPROC TaskFunctionName;
	DXAPCPROC APCFunctionName;
Then, you need to implement these functions in your .cpp file:
	void __stdcall TaskFunctionName(void *pTaskData, BOOL *bContinueProcessing) 
	{ /* Insert code here. */ }

	void __stdcall __stdcall APCFunctionName(DWORD dwData) 
	{ /* Insert code here. */ }

See Also

IDXTaskManager::ScheduleTasks


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.