Answered by:
SetDisplayConfig fails from metro app on windows 8

Question
-
SetDisplayConfig fails with ACCESS DENIED error on windows 8. what is the alternate api to configure displays from a metro app?Monday, October 17, 2011 11:14 AM
Answers
-
Win-P is a user setting and users can use it. System configuration itself is limited in Metro style apps?
What is the scenario you have that requires the application set this rather than the user? If this is going to severely impact your application then please provide feedback via the Feedback tool or connect.
--Rob
- Marked as answer by DavidLambMicrosoft employee, Moderator Tuesday, October 25, 2011 11:18 PM
Friday, October 21, 2011 3:45 PMModerator
All replies
-
SetDisplayConfig is available only to Desktop apps. There is no analog for Metro style apps.
If you look at its definition in winuser.h you will see that it is defined only for WINAPI_PARTITION_DESKTOP . See http://msdn.microsoft.com/en-us/library/windows/apps/br205757(v=VS.85).aspx for information on Win32 API available to Metro style apps.
--Rob
- Proposed as answer by Rob Caplan [MSFT]Microsoft employee, Moderator Monday, October 17, 2011 3:24 PM
- Unproposed as answer by urmibaliga Tuesday, October 18, 2011 9:17 AM
Monday, October 17, 2011 3:24 PMModerator -
WinP works from Metro, Is there any API to use WinP capabilities in metro app? Whats the reason for blocking display config api's in metro apps?
Tuesday, October 18, 2011 9:12 AM -
Win-P is a user setting and users can use it. System configuration itself is limited in Metro style apps?
What is the scenario you have that requires the application set this rather than the user? If this is going to severely impact your application then please provide feedback via the Feedback tool or connect.
--Rob
- Marked as answer by DavidLambMicrosoft employee, Moderator Tuesday, October 25, 2011 11:18 PM
Friday, October 21, 2011 3:45 PMModerator -
Hi Rob,
I faced a similar problem where we are trying to include the display capabilities for one of the devices into metro styled- device application as demoed in Build. How come basic API like mode change has not been given in metro?
- Edited by MSDN_MidNightCoder Friday, November 18, 2011 1:32 PM
Friday, November 18, 2011 1:31 PM