locked
SetDisplayConfig fails from metro app on windows 8 RRS feed

  • 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

    Friday, October 21, 2011 3:45 PM
    Moderator

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

     

    Monday, October 17, 2011 3:24 PM
    Moderator
  • 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

    Friday, October 21, 2011 3:45 PM
    Moderator
  • 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?


    Friday, November 18, 2011 1:31 PM