typedef struct _QPROCINFO2 { ULONG QPI_length; ULONG QPI_type; /* Type of process. */ ULONG QPI_pid; /* Process or task ID. */ ULONG QPI_parentpid; /* Parent process or task ID. */ SID QPI_sid; /* Session identifier. */ ULONG QPI_sessiontype; /* Session type. */ ULONG QPI_priority; /* Process priority. */ ULONG QPI_flags; /* Process flags. */ ULONG QPI_user; /* User identifier in UUID format. */ ULONG QPI_group; /* Group identifier in UUID format. */ ULONG QPI_hmodule; /* Module handle. */ ULONG QPI_nameoff; /* Offset to the process name. */ ULONG QPI_threadcount; /* Thread count for the process. */ ULONG QPI_libcount; /* Count of libraries. */ ULONG QPI_liboff; /* Offset to libraries. */ } QPROCINFO2; typedef QPROCINFO2 * QPROCINFO2 ;