To my knowledge, the API routines for Windows Terminal Server are not documented on allapi.net. I can call some of them from VB, but I can' get WTSQuerySessionInformation to work. I think it might have something to do with the enum field you have to pass it, WTS_INFO_CLASS. Maybe VB doesn't pass enum fields to C. Has anybody called this routine successfully?

Thanks,

Ken