• 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

    • draw.io Desktop 30.2.6 by Razvan Serea draw.io desktop is a downloadable security-first diagramming application that runs on Windows, MacOS and Linux. Creating diagrams in the desktop app doesn’t need an internet connection. This is useful when you are disconnected or when you must create diagrams in a highly secure environment, where data protection is of the utmost importance. When you use the draw.io desktop app, your diagrams will be stored on your local device. Because this is a stand-alone application, also designed to run offline, there are no interfaces to cloud storage platforms available. Of course, you can still store your diagrams in folders that are synchronised to your cloud storage if you wish. Easy-to-use diagram editor The draw.io apps work just like the office and drawing tools you are used to using. Drag and drop shapes from the shape libraries and drag to draw connectors between them. Drag connectors to add waypoints and set a precise shape and position, or let them reroute automatically. Double click and start typing to add a label to anything. Create tables and swimlane flows with a familiar tool. Style shapes and connectors with customisable palettes, sketch options, fonts and text formatting tools. Search for shapes, including in open-source icon libraries. Use our vast libraries of shapes and templates, organised into logical categories, to create a range of diagrams and infographics. Generate diagrams from text descriptions using our smart templates. Diagram faster with keyboard shortcuts. draw.io Desktop 30.2.6 changelog: Uses electron 42.5.0 #2452 Updates to draw.io core 30.2.6. Download: draw.io 64-bit | Standalone (Open Source) Download: draw.io 32-bit | ARM64 | ARM64 Standalone Links: draw.io Home Page | Project page @GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • 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
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      500
    2. 2
      +Edouard
      209
    3. 3
      PsYcHoKiLLa
      146
    4. 4
      Steven P.
      74
    5. 5
      FloatingFatMan
      70
  • Tell a friend

    Love Neowin? Tell a friend!