TASKENTRY

3.1

#include <toolhelp.h>

typedef struct tagTASKENTRY {  /* te */
    DWORD     dwSize;
    HTASK     hTask;
    HTASK     hTaskParent;
    HINSTANCE hInst;
    HMODULE   hModule;
    WORD      wSS;
    WORD      wSP;
    WORD      wStackTop;
    WORD      wStackMinimum;
    WORD      wStackBottom;
    WORD      wcEvents;
    HGLOBAL   hQueue;
    char      szModule[MAX_MODULE_NAME + 1];
    WORD      wPSPOffset;
    HANDLE    hNext;
} TASKENTRY;

The TASKENTRY structure contains information about one task.

Members

dwSize

Specifies the size of the TASKENTRY structure, in bytes.

hTask

Identifies the task handle for the stack.

hTaskParent

Identifies the parent of the task.

hInst

Identifies the instance handle of the task. This value is equivalent to the task's DGROUP segment selector.

hModule

Identifies the module that contains the currently executing function.

wSS

Contains the value in the SS register.

wSP

Contains the value in the SP register.

wStackTop

Specifies the offset to the top of the stack (lowest address on the stack).

wStackMinimum

Specifies the lowest segment number of the stack during execution of the task.

wStackBottom

Specifies the offset to the bottom of the stack (highest address on the stack).

wcEvents

Specifies the number of pending events.

hQueue

Identifies the task queue.

szModule

Specifies the name of the module that contains the currently executing function.

wPSPOffset

Specifies the offset from the program segment prefix (PSP) to the beginning of the executable code segment.

hNext

Identifies the next entry in the task list. This member is reserved for internal use by Windows.

See Also

TaskFindHandle, TaskFirst, TaskNext