COM object is not in the allowed list of CoCreateInstanceFromApp error in my Metro App

前端 未结 1 1796
闹比i
闹比i 2021-01-21 13:20

I am trying to set an image as wallpaper through my windows 8 Metro App. I am getting this error when I try to do it \"Creating an instance of the COM component with CLSID {750

相关标签:
1条回答
  • 2021-01-21 13:31

    The set of COM objects which can be accessed by a windows store app is extremely limited. Looking at the MSDN documentation, it appears that CLSID_ActiveDesktop is not one of the classes that's allowed to be accessed by store apps.

    As Hans mentioned in his comment, store apps aren't allowed to interfere with per-user state - actions like changing the desktop wallpaper count as changing user state.

    0 讨论(0)
提交回复
热议问题