Mar 10, 2014 at 9:25am UTC
Hi,
How to check if the Metro interface is running in foreground on Win_8 and how to switch into desktop mode ?
I need My application to run in desktop mode because certain functions can't work while Metro is in foreground.
I want to use a simple switch to desktop before my function is called:
1 2 3 4 5
if (metro == 1) then
switch2desktop();
endif
myfunc();
another problem is that user can tap "windows" button and My func will crash so it would be nice if there is a function/method to block Metro.
btw. simple sending "Windows+d" isn't working.
Last edited on Mar 10, 2014 at 9:30am UTC
Mar 10, 2014 at 7:03pm UTC
Thanks modoran!
So I know how to check if it's "on", but how to switch into desktop mode ?
Mar 11, 2014 at 3:43pm UTC
Turning Metro UI off per-user:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RPEnabled set to 0
Then log off and back in.
Then for the rest of the system, login UI, etc:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RPEnabled set to 0
Restart.
Please note that I do not test these myself, so I don't know if it works or not.
Mar 11, 2014 at 8:38pm UTC
RPEnabled works only on windows 8 preview.
Thanks for Your time.