`
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 Printed November 21, 2024, 12:46 pm This article has been viewed/printed 35212 times. |