Anonymous
login
You don't need the C API for this.
Use DXL to extract the agent info.
I've done it and it works fine.