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.
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.