Latest update for winrt

PiperOrigin-RevId: 452591835
This commit is contained in:
jfcarroll
2022-06-02 12:05:19 -07:00
committed by Copybara-Service
parent 11558b453c
commit 28da839987
1366 changed files with 69568 additions and 70576 deletions
@@ -1,12 +1,8 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
#pragma once
#ifndef WINRT_Windows_Devices_Custom_0_H
#define WINRT_Windows_Devices_Custom_0_H
WINRT_EXPORT namespace winrt::Windows::Foundation
{
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
}
WINRT_EXPORT namespace winrt::Windows::Storage::Streams
{
struct IBuffer;
@@ -128,10 +124,10 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Devices_Custom_ICustomDevice
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Storage::Streams::IInputStream) InputStream() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Storage::Streams::IOutputStream) OutputStream() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<uint32_t>) SendIOControlAsync(winrt::Windows::Devices::Custom::IIOControlCode const& ioControlCode, winrt::Windows::Storage::Streams::IBuffer const& inputBuffer, winrt::Windows::Storage::Streams::IBuffer const& outputBuffer) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) TrySendIOControlAsync(winrt::Windows::Devices::Custom::IIOControlCode const& ioControlCode, winrt::Windows::Storage::Streams::IBuffer const& inputBuffer, winrt::Windows::Storage::Streams::IBuffer const& outputBuffer) const;
[[nodiscard]] auto InputStream() const;
[[nodiscard]] auto OutputStream() const;
auto SendIOControlAsync(winrt::Windows::Devices::Custom::IIOControlCode const& ioControlCode, winrt::Windows::Storage::Streams::IBuffer const& inputBuffer, winrt::Windows::Storage::Streams::IBuffer const& outputBuffer) const;
auto TrySendIOControlAsync(winrt::Windows::Devices::Custom::IIOControlCode const& ioControlCode, winrt::Windows::Storage::Streams::IBuffer const& inputBuffer, winrt::Windows::Storage::Streams::IBuffer const& outputBuffer) const;
};
template <> struct consume<winrt::Windows::Devices::Custom::ICustomDevice>
{
@@ -140,8 +136,8 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Devices_Custom_ICustomDeviceStatics
{
WINRT_IMPL_AUTO(hstring) GetDeviceSelector(winrt::guid const& classGuid) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Custom::CustomDevice>) FromIdAsync(param::hstring const& deviceId, winrt::Windows::Devices::Custom::DeviceAccessMode const& desiredAccess, winrt::Windows::Devices::Custom::DeviceSharingMode const& sharingMode) const;
auto GetDeviceSelector(winrt::guid const& classGuid) const;
auto FromIdAsync(param::hstring const& deviceId, winrt::Windows::Devices::Custom::DeviceAccessMode const& desiredAccess, winrt::Windows::Devices::Custom::DeviceSharingMode const& sharingMode) const;
};
template <> struct consume<winrt::Windows::Devices::Custom::ICustomDeviceStatics>
{
@@ -150,11 +146,11 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Devices_Custom_IIOControlCode
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Custom::IOControlAccessMode) AccessMode() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Custom::IOControlBufferingMethod) BufferingMethod() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint16_t) Function() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint16_t) DeviceType() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) ControlCode() const;
[[nodiscard]] auto AccessMode() const;
[[nodiscard]] auto BufferingMethod() const;
[[nodiscard]] auto Function() const;
[[nodiscard]] auto DeviceType() const;
[[nodiscard]] auto ControlCode() const;
};
template <> struct consume<winrt::Windows::Devices::Custom::IIOControlCode>
{
@@ -163,7 +159,7 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Devices_Custom_IIOControlCodeFactory
{
WINRT_IMPL_AUTO(winrt::Windows::Devices::Custom::IOControlCode) CreateIOControlCode(uint16_t deviceType, uint16_t function, winrt::Windows::Devices::Custom::IOControlAccessMode const& accessMode, winrt::Windows::Devices::Custom::IOControlBufferingMethod const& bufferingMethod) const;
auto CreateIOControlCode(uint16_t deviceType, uint16_t function, winrt::Windows::Devices::Custom::IOControlAccessMode const& accessMode, winrt::Windows::Devices::Custom::IOControlBufferingMethod const& bufferingMethod) const;
};
template <> struct consume<winrt::Windows::Devices::Custom::IIOControlCodeFactory>
{
@@ -172,7 +168,7 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_Devices_Custom_IKnownDeviceTypesStatics
{
[[nodiscard]] WINRT_IMPL_AUTO(uint16_t) Unknown() const;
[[nodiscard]] auto Unknown() const;
};
template <> struct consume<winrt::Windows::Devices::Custom::IKnownDeviceTypesStatics>
{