How can my application detect if it is running in a Terminal Services client session?

A

Alek Luchnikov

Hello, All!
http://ts.veranoest.net/ts_faq_applications.htm#DetectRemoteSession

You can detect if your application is running in a remote session by calling
GetSystemMetrics().
The following function returns TRUE if the application is running in a
remote session and FALSE if the application is running on the console.

BOOL IsRemoteSession(void){
return GetSystemMetrics( SM_REMOTESESSION );
}
Is anybody know how detect from Visual Basic??? MS Access 2000-2007

With best regards, Alek Luchnikov. E-mail:
(e-mail address removed)
=================================================
 

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