Shoutbox

Process Mode .NET - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Process Mode .NET (/showthread.php?tid=56116)

Process Mode .NET by leito on 02-22-2006 at 03:34 AM

Hey guys, I need your help. Iīm doing a Task Manager type application. For a Operating Systems class. I'm using the Diagnostics.Process to get almost all things they ask me too, but I canīt find a way to get the "mode". What I want is to know if the process is running in (priviledged mode or user mode)?.


Thank you in advance for your answer,

Leito.


RE: Process Mode .NET by matty on 02-22-2006 at 04:00 AM

http://msdn.microsoft.com/library/default.asp?url...cessClassTopic.asp


RE: Process Mode .NET by leito on 02-22-2006 at 07:16 AM

Thanks Matty, as I mentioned. I'm using the Process class, but I can't find a way to get the current mode in which the process is running (user or priviledge(monitori/kernel)).

Maybe their is another way... since I can't find it in the Process class.


RE: Process Mode .NET by RaceProUK on 02-22-2006 at 01:17 PM

The way Windows works is that all processes run in user mode, and only the kernel is in priviledged mode. A process making a system call basically calls kernel code, which is already priviledged.

In fact, on most OSes, processes all run in user mode. This way, they're protected from damaging each other.