all groups > dotnet security > october 2006 >
You're in the

dotnet security

group:

Help!! InvalidOperationException in GetProcessesByName!!


Help!! InvalidOperationException in GetProcessesByName!! Eugene
10/26/2006 5:18:01 PM
dotnet security:
I used "Process.GetProcessesByName" method under XP with no problem.

Under Vista it throws "InvalidOperationException" if the user is not
Administrator.

Please help.

Re: Help!! InvalidOperationException in GetProcessesByName!! Dominick Baier
10/27/2006 4:38:13 AM
surprise, surprise :)

Welcome to the real world (the non-admin world) - if you are not an admin
you don't have access to every process information. Be prepared for such
exceptions.

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]

Re: Help!! InvalidOperationException in GetProcessesByName!! Eugene
10/27/2006 5:01:02 AM
I've been a veteran of non-Admin world since 1999. This is different world.
Whoever enabled this restriction no doubt meant to make Vista more secure. In
reality I will have to set my users up as administrators so my program can
continue to function.

Please suggest any way to code around.

Thank you in advance.

Eugene


[quoted text, click to view]
Re: Help!! InvalidOperationException in GetProcessesByName!! Nicole Calinoiu
10/28/2006 8:12:28 AM
Which build of Vista are you using for your testing?


[quoted text, click to view]
AddThis Social Bookmark Button