Remote desktop
-
Hi all, My application needs to know if it's running through remote desktop, to optimize graphics and stuff for low bandwitdh connections. Question: How do i automatically detect that the user is running my app through remote desktop? Thanks in advance!!
-
Hi all, My application needs to know if it's running through remote desktop, to optimize graphics and stuff for low bandwitdh connections. Question: How do i automatically detect that the user is running my app through remote desktop? Thanks in advance!!
Maybe this function works: GetSystemMetrics( SM_REMOTESESSION ); which returns a bool indicating wherever the user is using RD... havent been able to test it yet...
-
Maybe this function works: GetSystemMetrics( SM_REMOTESESSION ); which returns a bool indicating wherever the user is using RD... havent been able to test it yet...
works, but the compiler refused to accept the SM_REMOTESESSION value, even including "winuser.h", where it is defined. So, i just passed the value 0x1000 :) I know its a bad policy, but im not going to waste a lot of time with compiler sh$t.
-
works, but the compiler refused to accept the SM_REMOTESESSION value, even including "winuser.h", where it is defined. So, i just passed the value 0x1000 :) I know its a bad policy, but im not going to waste a lot of time with compiler sh$t.
Define WINVER to be 0x0500 before including any headers (typically in StdAfx.h), and ensure you're using a relatively recent Platform SDK (the headers included with VC6 don't have this definition). You can consider this a 'safety guard' to stop you accidentally using a feature not supported on older systems. Stability. What an interesting concept. -- Chris Maunder
-
works, but the compiler refused to accept the SM_REMOTESESSION value, even including "winuser.h", where it is defined. So, i just passed the value 0x1000 :) I know its a bad policy, but im not going to waste a lot of time with compiler sh$t.
I think you have the right idea, but be careful, it just means it probably isn't supported on older verions (e.g., Windows Nt 4.0.) You could follow the suggestion to change your platform version and recompile, but I'm not sure if that means your app will fail to work on older platforms. :confused: I haven't risked it. "Fish and guests stink in three days." - Benjamin Franlkin
-
I think you have the right idea, but be careful, it just means it probably isn't supported on older verions (e.g., Windows Nt 4.0.) You could follow the suggestion to change your platform version and recompile, but I'm not sure if that means your app will fail to work on older platforms. :confused: I haven't risked it. "Fish and guests stink in three days." - Benjamin Franlkin
No problem! My app is only supposed to work on win2000+. I know that in previous versions that might not work...