Bernhard K��lbl (@besentv) commented about dlls/windows.devices.enumeration/main.c:
- struct device_watcher *this;
- HRESULT hr;
- FIXME("iface %p, filter %s, additionalProperties %p, kind %u, watcher %p stub!\n", iface, debugstr_hstring(filter), additionalProperties, kind, watcher);
- return E_NOTIMPL;
- if (!(this = malloc(sizeof(*this))))
return E_OUTOFMEMORY;
- this->IDeviceWatcher_iface.lpVtbl = &device_watcher_vtbl;
- this->ref = 1;
- list_init(&this->stopped_handlers);
- hr = IDeviceWatcher_QueryInterface(&this->IDeviceWatcher_iface, &IID_IDeviceWatcher, (void **)watcher);
For WinRT we usually just do `*watcher = &impl->IDeviceWatcher_iface` .