I looked around and the only thing I could find was a post describing the problem in detail. But with no solution. So I took the easy was out, and at least for now, our client services will have to manually set the Citrix flag if the operating system is Citrix.
>Perry,
>
>We have the same stituation. Have you found a solution?
>
>Thanks
>
>>We have an app that can run on Citrix or standalone. We put in place sometime ago code to automagically detect when run on Citrix and set a system flag. Prior to that the client services people had to manually set the flag when installing a system.
>>
>>I've checked the code and it's using WTSQuerySessionInformation WIN32 API call. It appears that this API got changed to return > 1 for console sessions. So the CITRIX detection API calls don't function correctly anymore.
>>
>>Anyone have a better way to detect Citrix under Vista?
>>
>>Thanks
(On an infant's shirt): Already smarter than Bush