/*
  This file is based on common.h from the TLIST utility
  from the Microsoft SDK for Windows NT 4.0
*/

#define TITLE_SIZE          64
#define PROCESS_SIZE        16

// max. number of tasks currently running (for generation of list)
#define MAX_TASKS           256

//
// task list structure
//
typedef struct _TASK_LIST {
    DWORD       dwProcessId;
    DWORD       dwInheritedFromProcessId;
    BOOL        flags;
    HANDLE      hwnd;
    CHAR        ProcessName[PROCESS_SIZE];
    CHAR        WindowTitle[TITLE_SIZE];
} TASK_LIST, *PTASK_LIST;

DWORD
GetTaskList(
    PTASK_LIST  pTask,
    DWORD       dwNumTasks
    );

BOOL
FindPid(
    CHAR *PName,
    LPDWORD  Pid
    );
