T
TieTo
Hello,
I'm looking for a way to identify a running process from which service it is
started. All seems working well so far. I am using a simpel wmi call to
enumerate all running processes and all installed services. I then compare
the 'Pathname' property from the service against the 'Commandline' property
of the running process to see if they match. If they do, I know which
service is my running process. This all works.
I noticed on some test machines that I have multiple identical running
process which are started by different services but the problem is that
those services are all identical too, with the same 'Pathname' property.
Anyone know how I can enumerate those correctly? Maybe I'm doing my check
the wrong way.
Kind rgds,
T.
I'm looking for a way to identify a running process from which service it is
started. All seems working well so far. I am using a simpel wmi call to
enumerate all running processes and all installed services. I then compare
the 'Pathname' property from the service against the 'Commandline' property
of the running process to see if they match. If they do, I know which
service is my running process. This all works.
I noticed on some test machines that I have multiple identical running
process which are started by different services but the problem is that
those services are all identical too, with the same 'Pathname' property.
Anyone know how I can enumerate those correctly? Maybe I'm doing my check
the wrong way.
Kind rgds,
T.