Using GetSystemMetrics(SM_REMOTESESSION) in VB.Net

G

Guest

Hi,
Can you please let me know the code in VB.Net for how to use
GetSystemMetrics(SM_REMOTESESSION) to know if the application is running on
Terminal Server or on local machine.

Thanks
 
H

Herfried K. Wagner [MVP]

Hitesh said:
Can you please let me know the code in VB.Net for how to use
GetSystemMetrics(SM_REMOTESESSION) to know if the application is running
on
Terminal Server or on local machine.

\\\
Private Declare Function GetSystemMetrics Lib "user32.dll" ( _
ByVal nIndex As Int32 _
) As Int32

Private Const SM_REMOTESESSION As Int32 = &H1000
///
 

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