@SERVICE[service_name,6] = ProcessId

May 20, 2008
11,288
95
Syracuse, NY, USA
Rex, that may be easy. The SERVICE_STATUS_PROCESS struct filled by QueryServiceStatusEx() contains the member

SERVICE_STATUS_PROCESS::dwProcessId.

I figure you already have that filled struct hanging around.
 

Similar threads