Vielleicht hilft dir dieses API ja weiter:
Retrieve Program Interface Information (QBNRPII) API

Scheint aber sehr komplex zu sein!