The functions for querying topologies begin with tpm_qry.
tpm_qrygetresdesc
Gets the description of the query result topology.
tpm_qrygetrestopo
Gets the name of the query result topology.
tpm_qrygettoponame
Gets the name of the query source topology.
tpm_qrysetrestopo
Defines or or undefines a query result topology.
tpm_qrysettoponame
Defines or undefines a topology query.