The information returned depends on the InfoLevel requested. The first entry is a length field which gives the offset in bytes to the next entry. Variable-length information is placed at the end of the fixed structure.
All entries returned will 4-byte aligned and the buffer must be 4-byte aligned.
The QPROCINFO1 structure will be returned for QPI_BASIC (InfoLevel = 1 ) queries. QPROCINFO1 will be repeated InfoEntryCount times in the InfoBuffer. Session id, session type, priority and hmodule information will be returned for OS/2 processes only.
The QPROCINFO2 structure will be returned for QPI_EXTENDED (InfoLevel = 2 ) queries. QPROCINFO2 will be repeated InfoEntryCount times in the InfoBuffer. Session id, session type and hmodule information will be returned for OS/2 processes only.