How can I get the Local service's exefile

delphi package - easy access to kernel objects etc.
Post Reply
jzjjony
Posts: 15
Joined: Mon Jan 23, 2006 12:33 pm

How can I get the Local service's exefile

Post by jzjjony »

When I using process(PID).ParentProcess.ExeFile to get the Local
service's exefile(such as alg.exe,svchost.exe),there is an error.

why?Whether I can get it?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

What kind of error is there?

Does the user account under which you're running have enough privileges?
jzjjony
Posts: 15
Joined: Mon Jan 23, 2006 12:33 pm

Post by jzjjony »

My application run in administrator account.
The error is "project project1.exe raised exception class EExternalException with message 'External exception C0000008'.Process stopped.Use Step or Run to continue.";
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Which version of madCollection are you using? Could you please make sure that you're using the latest version?

http://madshi.net/madCollection.exe

If you still get the crash then, could you please compile your app with madExcept and post the bug report here?
Post Reply