I
Igor Mendizabal
Good morning,
I'm trying to write an application to work under Terminal Server (either on
Windows 2000 or Windows 2003). I want the app to detect when a client gets
disconnected, so that it can automatically log out from the system. So,
looking at the documentation, I saw that the WTSRegisterSessionNotification
function could suit my needs. But installing a test app in both systems, I
realized that the Windows 2000 version of wtsapi32.dll doesn't implement
that function.
I kind of substituted it for a timer that keeps calling to
WTSQuerySessionInformation and detects ConnectState changes.
Is there a way to install/use the WTSQuerySessionInformation function on a
Windows 2000 system?
Thank you very much
Igor Mendizabal
R.P.S.
I'm trying to write an application to work under Terminal Server (either on
Windows 2000 or Windows 2003). I want the app to detect when a client gets
disconnected, so that it can automatically log out from the system. So,
looking at the documentation, I saw that the WTSRegisterSessionNotification
function could suit my needs. But installing a test app in both systems, I
realized that the Windows 2000 version of wtsapi32.dll doesn't implement
that function.
I kind of substituted it for a timer that keeps calling to
WTSQuerySessionInformation and detects ConnectState changes.
Is there a way to install/use the WTSQuerySessionInformation function on a
Windows 2000 system?
Thank you very much
Igor Mendizabal
R.P.S.