Status PEXGetTableInfo( Display *display, Drawable drawable, int table_type, PEXTableInfo *info_return )
Zero if unsuccessful; non-zero otherwise.
Invoke PEXGetTableInfo to obtain information about the specified type of lookup table. The type of lookup table must be one of the types described in Table Types, Availability, and Definitions.
This function assumes that you will use the lookup table on drawables with the same root and depth as the specified drawable. The returned information includes the number of predefined table entries, the number of definable table entries, and the indices of the predefined minimum and maximum entries. Predefined entries are contiguous. The number of definable table entries includes the number of predefined entries since predefined table entries can be redefined by the application. All entries between the predefined minimum and maximum values are guaranteed to be defined initially (i.e., predefined entries have contiguous indices).
For an overview, see Lookup Tables.