locked
More fine-grained way to make a window stay on top of Metro desktop?

    Question

  • So apparently you need a uiaccess flag on an entire process in order to simply make a window stay on top of other windows...

    http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/8529357f-3ff8-4c83-baaf-5215ca9cc14a

     Is there a more fine-grained way to do this?  It seems like my choices are to make my entire application use uiaccess (easy, but which causes other issues, because it's also a COM server, and I guess clients would need to start using the elevation moniker? http://msdn.microsoft.com/en-us/library/windows/desktop/ms679687(v=vs.85).aspx)... or to refactor out entire parts of my UI that are required to be on top into a separate uiaccess=true process (possible, but difficult).  What I'd ideally like to do is have a small uiaccess=true process (which I already have for other things)  say, be able call SetWindowPos( HWND_TOPMOST) on a window in my medium integrity process and have it be on top of Metro..

    Monday, February 13, 2012 6:56 PM

All replies

  • This facility is provide only for accessibility applications and narrowly targetted test tools. It is not intended for general purpose applications.

    --Rob

    Monday, February 13, 2012 7:35 PM
    Owner
  • I understand that, but there are plenty of other applications that are not accessibility applications or test tools that benefit from being on top of metro. Task Manager, for instance.  In our case, capturing the screen and providing visual indicators to the user of what part of the screen is being captured.  I was just trying to find out / make a feature request for a narrower way I can do this without making the entire application uiaccess, which might increase the security risk, or rearchitecturing my application.
    Monday, February 13, 2012 9:46 PM