Has anyone had any success using the API calls for Terminal services? I'm particularly interested in the WTSQuerySessionInformation api so that I can find information about the client machine.

Any help would be greatly appreciated.

Thanks
Syd.