uwp - How to find Windows Universal app windows from C# -


i want write own program lets me select 1 window of open windows , set state of window top, selected window show on top!

the problem... since windows 8 there apps , process comes in process explorer selection of tool doesn't list it. (its there no app)

my source looks like:

private void refreshwindowlist(object sender, eventargs e) {     windowlist.items.clear();      foreach (process p in process.getprocesses().where(pp => pp.mainwindowhandle != intptr.zero && pp.processname != "explorer"))     {         windowlist.items.add(p.processname);     } } 

this function called when open combobox , refresh items every time when view list.

i find normal programs, there way find win 8/10 apps ?

edit clarify: normal processes notepad can found. windows universal apps e.g. netflix can't. @ least don't know how find them.

some applications, e.g. netflix, written using html , javascript. these apps hosted wwahost:

[...] microsoft explains wwahost “an internet explorer-based rendering platform.”

you can check if case app right clicking in task manager , choosing go details:

task manager processes

task manager details

to find out app being hosted, can use mainwindowtitle

console.writeline(p.processname); // wwahost console.writeline(p.mainwindowtitle); // netflix 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -