Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Terminal Services API's

Status
Not open for further replies.

Ogi

Technical User
Nov 9, 2001
896
GB
Hi,

I'm 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 don't know how to!

WTSRegisterSessionNotification

It's URL for information is:-


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 haven't found any Google link that helps me!

WM_WTSSESSION_CHANGE URL is:-


HandlerEx URL is:-


Many thanks in advance for any and all help given.

Cheers,
Carl.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top