WTSRegisterSessionNotification in Windows 2000

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top