Using GetSystemMetrics(SM_REMOTESESSION) in VB.Net

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
///
 
Back
Top