internal static extern bool EnumServicesStatusEx( SafeServiceHandle hSCManager, SC_ENUM_TYPE InfoLevel, ServiceType dwServiceType, SERVICE_STATE dwServiceState, SafeHGlobalBuffer lpServices, int cbBufSize, out int pcbBytesNeeded, out int lpServicesReturned, ref int lpResumeHandle, string pszGroupName );
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);