Bernhard K��lbl (@besentv) commented about dlls/windows.devices.enumeration/tests/devices.c:
- hr = RoInitialize(RO_INIT_MULTITHREADED);
- ok(hr == S_OK, "got hr %#lx\n", hr);
- hr = WindowsCreateString(device_info_name, wcslen(device_info_name), &str);
- ok(hr == S_OK, "got hr %#lx\n", hr);
- hr = RoGetActivationFactory(str, &IID_IActivationFactory, (void **)&factory);
- ok(hr == S_OK || broken(hr == REGDB_E_CLASSNOTREG), "got hr %#lx\n", hr);
- WindowsDeleteString(str);
- if (hr == REGDB_E_CLASSNOTREG)
- {
win_skip("%s runtimeclass, not registered.\n", wine_dbgstr_w(device_info_name));
return;
- }
- hr = IActivationFactory_QueryInterface(factory, &IID_IInspectable, (void **)&inspectable);
While you're at it, also check for IID_IAgileObject.