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:
to find out app being hosted, can use mainwindowtitle
console.writeline(p.processname); // wwahost console.writeline(p.mainwindowtitle); // netflix
Comments
Post a Comment