How to use Terminal Services API to log into a system

Nov 27 2007 9:10 PM
Has anyone used the Terminal Services API?  I'm needing to use it to log into a system using my credentials and run a particular app.  Any examples would be appreciated.