From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- include/windows.devices.enumeration.idl | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+)
diff --git a/include/windows.devices.enumeration.idl b/include/windows.devices.enumeration.idl index a88cb69edac..0186d043e42 100644 --- a/include/windows.devices.enumeration.idl +++ b/include/windows.devices.enumeration.idl @@ -192,6 +192,44 @@ namespace Windows.Devices.Enumeration { [propget] HRESULT Panel([out, retval] Windows.Devices.Enumeration.Panel *value); }
+ [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.Devices.Enumeration.DeviceInformation), + uuid(c17f100e-3a46-4a78-8013-769dc9b97390) + ] + interface IDeviceInformationStatics : IInspectable + { + [overload("CreateFromIdAsync")] + HRESULT CreateFromIdAsync([in] HSTRING id, + [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformation *> **op); + [overload("CreateFromIdAsync")] + HRESULT CreateFromIdAsyncAdditionalProperties([in] HSTRING id, + [in] Windows.Foundation.Collections.IIterable<HSTRING> *additional_properties, + [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformation *> **op); + [overload("FindAllAsync")] + HRESULT FindAllAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformationCollection *> **op); + [default_overload] [overload("FindAllAsync")] + HRESULT FindAllAsyncDeviceClass([in] Windows.Devices.Enumeration.DeviceClass device_class, + [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformationCollection *> **op); + [overload("FindAllAsync")] + HRESULT FindAllAsyncAqsFilter([in] HSTRING filter, + [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformationCollection *> **op); + [overload("FindAllAsync")] + HRESULT FindAllAsyncAqsFilterAndAdditionalProperties([in] HSTRING filter, + [in] Windows.Foundation.Collections.IIterable<HSTRING> *additional_properties, + [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceInformationCollection *> **op); + [overload("CreateWatcher")] + HRESULT CreateWatcher([out, retval] Windows.Devices.Enumeration.DeviceWatcher **watcher); + [default_overload] [overload("CreateWatcher")] + HRESULT CreateWatcherDeviceClass([in] Windows.Devices.Enumeration.DeviceClass device_class, + [out, retval] Windows.Devices.Enumeration.DeviceWatcher **watcher); + [overload("CreateWatcher")] + HRESULT CreateWatcherAqsFilter([in] HSTRING filter, [out, retval] Windows.Devices.Enumeration.DeviceWatcher **watcher); + [overload("CreateWatcher")] + HRESULT CreateWatcherAqsFilterAndAdditionalProperties([in] HSTRING filter, + [in] Windows.Foundation.Collections.IIterable<HSTRING> *additional_properties, [out, retval] Windows.Devices.Enumeration.DeviceWatcher **watcher); + } + [ contract(Windows.Foundation.UniversalApiContract, 1.0), exclusiveto(Windows.Devices.Enumeration.DeviceInformation),