HardwareDeviceEvent from GetChildItemsHierarchy

Hi, we recently started to using IConfigurationService.GetChildItemsHierarchy instead of IConfigurationService.GetChildItems (recursively) to improve loading time when fetching device information on larger systems.

This works fine on for example my system (2024 R2), when calling IConfigurationService.GetChildItemsHierarchy on a recording server item specifying ItemTypes:

  • Camera
  • Microphone
  • InputEvent
  • HardwareDeviceEvent

However, a customer reported having som problems with this on 2022 R3.

It seems like the same call will return cameras (and possibly microphones and inputs), but NO HardwareDeviceEvent.

I’m just wondering if you know if the support for ItemTypes has been extended in later versions that could explain why we get different behavior on different versions of XProtect.

Hi Anders,

I do not have a 2022 R3 running, but from the code I can see that a change was made in 2023 R2 which was likely to have fixed this issue, so I think your customer will have to upgrade if they need this to work.

Best regards,

Peter

Thanks a lot, Peter