` Checking is app running in Teminal Services session (Edin Cahtarevic ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Checking is app running in Teminal Services session
2001-01-07 -- Edin Cahtarevic
 
Just found API for check is your application running in TS: BOOL IsRemoteSession(void) { return GetSystemMetrics( SM_REMOTESESSION ); } I do not have any of MS Developer tools, so can someone send me Equate for SM_REMOTESESSION (it is in WinUser.H). Thanks in advance. (Mr. Parker, add this in FAQ). Jeff Hill adds: I have the July 2000 version of MSDN library... It equates SM_REMOTESESSION to 0x1000 (or 4096 decimal). The docs say this is only valid for NT 4.0 Service Pack 4 or greater. Raimund Schuldhaus adds: There are two ways to find out what you want: 1st way works only under Windows 2000 Call VerifyVersionInfo 2nd way works under Terminal Server 4 and Windows 2000 Search for ProductSuite under System\CurrentControlSet\Control\ProductOptions


Today is November 21, 2024, 8:16 am
This article has been viewed 35212 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: