TestimoX

API Reference

Class

ServicesSettings

Namespace ComputerX.Services
Assembly ComputerX
Modifiers static

Global knobs for service enumeration. Defaults keep Native strictly native. Flip these to let Native use WMI for specific enrichments when you value speed over purity.

Inheritance

  • Object
  • ServicesSettings

Properties

public static Boolean PreferWmiForStartupTypeLocal { get; set; } #

When true, Native may issue a single WMI query locally to read Win32_Service.StartMode and map it to StartupType for the Auto-Start filter. Default: false (strict native).

public static Boolean PreferWmiForStartupTypeRemote { get; set; } #

When true, Native may use WMI on remote machines to cache service details (including StartMode) instead of relying on Remote Registry. Default: false (strict native).

public static Int32 StartTypeParallelismLocal { get; set; } #

Max parallelism when computing StartupType via native SCM (QueryServiceConfig) locally. Set to 0 or less to use Environment.ProcessorCount. Default: 0.

public static Int32 StartTypeParallelismRemote { get; set; } #

Max parallelism when computing StartupType via native SCM (QueryServiceConfig) on remote hosts. Default: 8 (avoid saturating RPC/SCM on the remote box).

public static Boolean EnableSnapshotCache { get; set; } #

When true, caches per-host service snapshots briefly to avoid re-enumeration within the same process (useful for showing multiple filters back-to-back). Default: true.

public static TimeSpan SnapshotCacheTtl { get; set; } #

Time window to reuse a snapshot from the cache. Default: 5 seconds.

public static Boolean AutoPreferNativeRemote { get; set; } #

When true, the Auto method prefers Native first on remote hosts as well (Native → WMI → CIM). When false, Auto on remote hosts uses WMI → CIM → Native. Default: true (prefer Native).

public static Boolean NativeIncludeTextDetails { get; set; } #

Controls whether the Native method should populate text-heavy details (Description, ImagePath, Account). Disabling this keeps Native very fast, especially for Auto-Start filters that only need StartupType. Default: false.