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:
[email protected]
=================================================
 
Top