Using Terminal Services API's

CarlEOgden

Member
Joined
Feb 17, 2004
Messages
8
Hi,

Im trying to write a program that gets the users that are logged onto a Terminal Services Server. A bit like the "tsadmin.exe" program. But I need to log some stats!

I would like to know how to add in this API call but am new to VB.NET and dont know how to!

WTSRegisterSessionNotification

Its URL for information is:-

http://msdn.microsoft.com/library/default.asp?url=/libr...

When this call is working, you need to then watches using WM_WTSSESSION_CHANGE and HandlerEx, I presume that I need some timer control and check for this getting results but havent found any Google link that helps me!

WM_WTSSESSION_CHANGE URL is:-

http://msdn.microsoft.com/library/default.asp?url=/libr...

HandlerEx URL is:-

http://msdn.microsoft.com/library/default.asp?url=/libr...

Many thanks in advance for any and all help given.

Cheers,
Carl.
 
Back
Top