Get info from ppp0 connection?

I have used ppp protocol to connect Qnx & Window via MODEM. In a phAB program, What function I can use to get infomation (etc connect status, Ip address of Server&Client, …) from ppp0 connection.

Please help!
Hung