Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Phindows detection: (4 Items)
   
Phindows detection  
Anybody knows how an application can detect if it is running under a phindows session?


Thanks
Re: Phindows detection  
One option would be to check for the connection status on TCP port 4868(use netstat utility).
As you know this is the port where phrelay is listening.
If there is a client connected, then your application is for sure relayed.
Re: Phindows detection  
Thanks for the answer.

But what if your application is running on native photon and there is another application running on phindows? You will 
see the phrelay entry of the other application.

I've found that you can use PtQueruSystemInfo and query for the Ph_GCAP_PHINDOWS bit mask in the capabilities member of 
the gfx structure that this function fills.
Re: Phindows detection  
Or maybe Ph_GCAP_RELAY bit