Hi All, I'm trying gather Terminal Server session information on 64-bit Windows machines. My question is two fold. First, on 32-bit machines we called the following function, which worked fine.
Private Declare Function WTSQuerySessionInformation Lib "wtsapi32" _
Alias "WTSQuerySessionInformationA" _
(ByVal hServer As Integer, _
ByVal SessionID As Integer, _
ByVal WTSInfoClass As Integer, _
ByRef ppBuffer As String, _
ByRef lLen As Integer) As Integer
On 64-bit machines however this function call fails. Does anyone have any idea's about how to fix this? I googled around, but couldn't find much about calling this function on a 64 bit machine. Second, does anyone know any other options for getting TS Client Session Info? Specifically I need the Computer Name that is accessing the TS.
Thanks a lot for the help.