• 0

List of Only Metro Windows Titles .Net


Question

I am writing a program and I need to get a list of open Metro apps. I posted a clear explanation on StackOverflow (reproduced below), but didn't get much of a response. For more on what I am working on see here.

 

Background

I am working on a program that needs to find a list of open Metro apps. I originally tried using pure python with ctypes and using win32 api. Unfortunately, I couldn't get the names of Metro apps. So I moved on to IronPython thinking I could leverage a .net function or two to get what I want. No luck.

Where I am at

I can easily get a list of running processes and their PID, but filtering the Metro apps from the non-metro apps is proving near impossible. Also, I need to get the HWND of that window so I can interact with it.

What Won't Work

EnumWindows doesn't seem to work. FindWindowEx seems promising, but I am not sure how to do this.

 

What I want

An example or lead on how to get the list of titles. Preferably in a .net language.

 

 

Thanks for any help you can give!

6 answers to this question

Recommended Posts

  • 0

Whilst you might be able to find what apps are Metro apps, I doubt you'll be able to actually interact with them in any meaningful way. Metro apps are all sandboxed in separate AppContainers and the security model won't let you interact with them.

  • 0

 

FloatingFatMan, on 25 Mar 2015 - 03:35, said:

    Whilst you might be able to find what apps are Metro apps, I doubt you'll be able to actually interact with them in any meaningful way. Metro apps are all sandboxed in separate AppContainers and the security model won't let you interact with them.

Good to know, I do however know that what I am attempting is possible, as 3+ different developers created the same thing independently. (StartMenuModifier is one).

I am now having difficulty getting from a C# process handle to a C++ pointer. I am currently trying to call process.Handle, but that is an IntPtr, and IsImmersiveProcess takes C pointers. I tried .ToPointer, but that just gave me the error "TypeError: expected pointer, got Pointer" :rofl:  I think that the "Pointer" is a C# pointer and a "pointer" is a C++ pointer, but I do not understand how I am supposed to get from one to the other. :cry: I'll probably try to use a winapi through ctypes next. Thanks!

 

This topic is now closed to further replies.
  • Posts

    • eSound Music 3.0.0 by Razvan Serea eSound Music is a free music streaming app that gives you access to over 150 million tracks from all genres. It allows you to search and listen to your favorite songs, create personalized playlists, and explore trending music. With an intuitive interface and smart search, discovering new artists and hits is fast and easy. You can even stream music in the background while using other apps. One of eSound’s standout features is its offline mode, letting you download and listen without internet access. eSound is widely compatible, working seamlessly across Windows, macOS, Linux, iPhone, iPad, Android, HarmonyOS, Amazon Fire devices, CarPlay, Android Auto, and more. eSound Music key features: Over 150 million tracks available Smart search for songs, artists, albums, and playlists Personalized song recommendations Continuous playback with auto-generated playlists Offline mode with song and playlist downloads Daily-updated trending charts and top songs Sleep timer to auto-stop playback High-quality audio support Customizable playlists and favorites Support for Apple CarPlay and Android Auto Works on Windows, macOS, Linux, iOS, Android, HarmonyOS, Amazon Fire, and more Cross-device sync via account login Background playback while using other apps Download: eSound Music 64-bit | Portable | ~160.0 MB (Free, paid upgrade available) Download: ARM64 | 116.0 MB Links: eSound Music Website | Screenshot | Web Player | Other OSes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • All these CEOs got the biggest boners thinking about firing employees for AI. Turned out it was just a wet dream.
    • And the fact that the majority of people from Poland are white European Christians while the people you are complaining about in post after post are not is just a coincidence... Every sentence in your post I am replying to is racist nonsense. None of it is actually based on any facts whatsoever. All immigrants are seeking a better life too. It's literally the only reason they would risk everything and leave their homes, families, and homeland. They are working and contributing to the economy too, as you even admit. They get the same benefits your partner did AND that YOU are eligible for as well. That is one of the key things of the EU and a mark of a civilization. That is the definition of a society where everyone is given a chance, treated equally and fairly, and is judged by the content of their character, not their different skin color or which version of ignorant superstitious nonsense their parents lied about as children. Racists around the world said the same things about the Irish and Jews and Poles (like your partner) and...every other immigrant movement over the centuries. What's your family's heritage, by the way? Were your ancestors lied about with racist fearmongering crapola by self-entitled locals the same way as you are now? If someone like that said the same things about all people from Poland, like your partner, would they be right? Or would you want them to judge your partner based on who they actually were, not where they just happened to come from?
    • Again, this is an irrelevant attempt to attack the messenger. The truth does not require any justification.
  • Recent Achievements

    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      153
    4. 4
      Steven P.
      72
    5. 5
      FloatingFatMan
      65
  • Tell a friend

    Love Neowin? Tell a friend!