Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 taskmanager app history in C#

I am trying to access application history from C#. I would like to present same information as in task manager, but I cannot find api/example. Of course I implement a desktop application.

To specify problem: I am not interested on CPU/RAM. The only thing I would like to get is Time.

UPDATE To exactly show what I am talking about look at this screen: Screen shot

like image 386
Piotr Stapp Avatar asked Apr 22 '13 18:04

Piotr Stapp


2 Answers

There is no supported way to get this information. Sorry.

like image 149
Raymond Chen Avatar answered Oct 21 '22 05:10

Raymond Chen


The description of the questions lacks details that you are talking about Metro Apps. The solution would be an equivalent of Process.TotalProcessorTime but for Metro Apps.

Unfortunately, you cannot get that information because as you stated the applications are running within another process (WWAHost.exe). The design of Metro is a bit more like the phone - you can't directly manipulate the system in the same way. There isn't a directly "Process" in the Windows Runtime (see here), which in turn means the Process class wouldn't make sense to port...

like image 24
Moslem Ben Dhaou Avatar answered Oct 21 '22 04:10

Moslem Ben Dhaou