mmccormick
New member
- Joined
- Nov 14, 2005
- Messages
- 2
- Programming Experience
- 1-3
I am trying to get the client's machine name when a user logs onto a Terminal Server. I would like to use the Terminal Server api - wtsapi32.dll. I have found several posts on the Internet that use the wtsapi32.dll but they all refer to C# or VB6. When I try to translate them to VB.Net, the application fails. I am certain that I have to declare "wtsapi32.dll" and use the function WTSQuerySessionInformation but I just can't seem to get the correct results. Does anyone have any sample code on how to do this?
thanks in advance,
Mike
thanks in advance,
Mike