Processes: two questions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

My fisrt question is: how to make difference between user applications and system services (which shouldn't be stopped by the user) among the running prcesses

The second one is: how to retreive the full path to the file of the process having it's ID

Thanks in advanc
 
Until CE 4.2, you couldn't have services, and under 4.2 you can't make a
"managed" service, so there's really no way to differentiate them. The user
will be able to stop them and there's little you can do to prevent it.

For #2 you can probably P/Invoke GetModuleFileName

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



Gloomy said:
Hi,

My fisrt question is: how to make difference between user applications and
system services (which shouldn't be stopped by the user) among the running
prcesses?
 
Back
Top