The constant: const int SERVICE_STATE_ALL = 0x00; in librpc/idl/svcctl.idl (around line 47) should have a value of 3. This is the "or" of SERVICE_STATE_ACTIVE = 0x01; SERVICE_STATE_INACTIVE = 0x02; This will greatly affect the quantity of service stati returned by the dcerpc_svcctl_EnumServicesStatus calls. Karl