public static extern bool EnumServicesStatusEx( IntPtr hSCManager, SC_ENUM_TYPE InfoLevel, SC_SERVICE_TYPE ServiceType, SC_QUERY_SERVICE_STATUS ServiceState, IntPtr lpServices, int cbBufSize, ref int pcbBytesNeeded, ref int lpServicesReturned, ref int lpResumeHandle, string pszGroupName);