internal static extern bool EnumDependentServices( IntPtr hService, SERVICE_ACTIVE_STATE dwServiceState, IntPtr lpServices, int cbBufSize, out int pcbBytesNeeded, out int lpServicesReturned);
internal static extern bool EnumServicesStatus( IntPtr hSCManager, SERVICE_TYPE dwServiceType, SERVICE_ACTIVE_STATE dwServiceState, IntPtr lpServices, int cbBufSize, out int pcbBytesNeeded, out int lpServicesReturned, ref int lpResumeHandle);
internal static extern bool EnumServicesStatusEx( IntPtr hSCManager, INFO_LEVEL infoLevel, SERVICE_TYPE dwServiceType, SERVICE_ACTIVE_STATE dwServiceState, IntPtr lpServices, int cbBufSize, out int pcbBytesNeeded, out int lpServicesReturned, ref int lpResumeHandle, string pszGroupName);