|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using GetSystemMetrics(SM_REMOTESESSION) in VB.NetHi,
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" <Hit***@discussions.microsoft.com> schrieb: \\\> 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 /// -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Hi,
Take a look at Systeminformation.terminalserversession http://msdn2.microsoft.com/en-us/library/system.windows.forms.systeminformation.terminalserversession.aspx Ken -------------------------- Show quoteHide quote "Hitesh" <Hit***@discussions.microsoft.com> wrote in message news:DF9DEA9F-F1EE-4CB6-877E-F41F41D672B6@microsoft.com... > 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 >
Is it worth while in developing VB.NET or C#.NET
tranferring data from Access to SQL Server Express USB Pen Drive Detection - Retrieving Dates are Evil! HELP! Baffeled by Treeview Nodes Index!!!!! crazy UserControl Class in a module or class in a class? Multiple references in the same project. Very Unpredictable ListBox Behaviour Countdown/pause/resume timer |
|||||||||||||||||||||||