| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/cppwinrt/winrt/impl/ |
Upload File : |
// C++/WinRT v2.0.190620.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef WINRT_Windows_Web_0_H
#define WINRT_Windows_Web_0_H
namespace winrt::Windows::Foundation
{
struct Uri;
}
namespace winrt::Windows::Web
{
enum class WebErrorStatus : int32_t
{
Unknown = 0,
CertificateCommonNameIsIncorrect = 1,
CertificateExpired = 2,
CertificateContainsErrors = 3,
CertificateRevoked = 4,
CertificateIsInvalid = 5,
ServerUnreachable = 6,
Timeout = 7,
ErrorHttpInvalidServerResponse = 8,
ConnectionAborted = 9,
ConnectionReset = 10,
Disconnected = 11,
HttpToHttpsOnRedirection = 12,
HttpsToHttpOnRedirection = 13,
CannotConnect = 14,
HostNameNotResolved = 15,
OperationCanceled = 16,
RedirectFailed = 17,
UnexpectedStatusCode = 18,
UnexpectedRedirection = 19,
UnexpectedClientError = 20,
UnexpectedServerError = 21,
InsufficientRangeSupport = 22,
MissingContentLengthSupport = 23,
MultipleChoices = 300,
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
UseProxy = 305,
TemporaryRedirect = 307,
BadRequest = 400,
Unauthorized = 401,
PaymentRequired = 402,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
NotAcceptable = 406,
ProxyAuthenticationRequired = 407,
RequestTimeout = 408,
Conflict = 409,
Gone = 410,
LengthRequired = 411,
PreconditionFailed = 412,
RequestEntityTooLarge = 413,
RequestUriTooLong = 414,
UnsupportedMediaType = 415,
RequestedRangeNotSatisfiable = 416,
ExpectationFailed = 417,
InternalServerError = 500,
NotImplemented = 501,
BadGateway = 502,
ServiceUnavailable = 503,
GatewayTimeout = 504,
HttpVersionNotSupported = 505,
};
struct IUriToStreamResolver;
struct IWebErrorStatics;
struct WebError;
}
namespace winrt::impl
{
template <> struct category<Windows::Web::IUriToStreamResolver>
{
using type = interface_category;
};
template <> struct category<Windows::Web::IWebErrorStatics>
{
using type = interface_category;
};
template <> struct category<Windows::Web::WebError>
{
using type = class_category;
};
template <> struct category<Windows::Web::WebErrorStatus>
{
using type = enum_category;
};
template <> struct name<Windows::Web::IUriToStreamResolver>
{
static constexpr auto & value{ L"Windows.Web.IUriToStreamResolver" };
};
template <> struct name<Windows::Web::IWebErrorStatics>
{
static constexpr auto & value{ L"Windows.Web.IWebErrorStatics" };
};
template <> struct name<Windows::Web::WebError>
{
static constexpr auto & value{ L"Windows.Web.WebError" };
};
template <> struct name<Windows::Web::WebErrorStatus>
{
static constexpr auto & value{ L"Windows.Web.WebErrorStatus" };
};
template <> struct guid_storage<Windows::Web::IUriToStreamResolver>
{
static constexpr guid value{ 0xB0ABA86A,0x9AEB,0x4D3A,{ 0x95,0x90,0x00,0x3E,0x3C,0xA7,0xE2,0x90 } };
};
template <> struct guid_storage<Windows::Web::IWebErrorStatics>
{
static constexpr guid value{ 0xFE616766,0xBF27,0x4064,{ 0x87,0xB7,0x65,0x63,0xBB,0x11,0xCE,0x2E } };
};
template <> struct abi<Windows::Web::IUriToStreamResolver>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall UriToStreamAsync(void*, void**) noexcept = 0;
};
};
template <> struct abi<Windows::Web::IWebErrorStatics>
{
struct __declspec(novtable) type : inspectable_abi
{
virtual int32_t __stdcall GetStatus(int32_t, int32_t*) noexcept = 0;
};
};
template <typename D>
struct consume_Windows_Web_IUriToStreamResolver
{
auto UriToStreamAsync(Windows::Foundation::Uri const& uri) const;
};
template <> struct consume<Windows::Web::IUriToStreamResolver>
{
template <typename D> using type = consume_Windows_Web_IUriToStreamResolver<D>;
};
template <typename D>
struct consume_Windows_Web_IWebErrorStatics
{
auto GetStatus(int32_t hresult) const;
};
template <> struct consume<Windows::Web::IWebErrorStatics>
{
template <typename D> using type = consume_Windows_Web_IWebErrorStatics<D>;
};
}
#endif