NetServiceGetInfo or Net32ServiceGetInfo

The NetServiceGetInfo API retrieves information about a particular network service that is started.