Wäre das was für dich mit dem QSYGETPH API?

Beispiel siehe hier:

http://www.scottklement.com/rpg/socktut/valuserid.html