Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect multi-use on Terminal Services server
Message
From
10/07/2005 10:52:44
 
 
To
09/07/2005 18:26:41
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01030883
Message ID:
01031002
Views:
19
Hi Perry,

>I'm at home on Sat., so don't have code handy. But we have Citrix detection code (Citrix sits on top of Terminal Server). I think I found in on MSDN. It was a method with an API call, not just the single statement.

If you come across your code or a relevant URL, I would enjoy seeing what you're using. I'm also curious how you use this check in your code. In particular, does your application change its behavior when it detects its running under a Terminal Services environment?

> I believe (???) one can tell if an application is running under Terminal Services via bitand( val(os(10)), 16 ).

My current solution appears to be working well. It's not intuitive reading the code, but os(10) does return a bit string indicating whether specific OS components are installed or not.

From VFP help:


os(10) A set of bit flags that identify the product suites available on the system. See Product Suite bit flag table below for values.

Product Suite bit flags:

Value Meaning
1 Microsoft Small Business Server is installed.

2 Windows 2000 Advanced Server or Windows Server 2003, Enterprise Edition, is installed.

4 Microsoft BackOffice components are installed.

16 Terminal Services is installed.

32 Microsoft Small Business Server is installed with the restrictive client license in force.

etc.



Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform