//
// Copyright (c) Microsoft Corporation. All rights reserved.
// 
//
// File generated by WinMDIDL version 8.00.0008
//

import "inspectable.idl";
import "AsyncInfo.idl";
import "EventToken.idl";
import "Windows.Foundation.idl";
// Additional imports to ensure that all required headers are included
cpp_quote("#if defined(__cplusplus)")
cpp_quote("}")
cpp_quote("#endif // defined(__cplusplus)")
cpp_quote("#include <Windows.Foundation.h>")
cpp_quote("#if defined(__cplusplus)")
cpp_quote("extern \"C\" {")
cpp_quote("#endif // defined(__cplusplus)")

// Forward Declare
namespace Windows
{
    namespace Foundation
    {
        runtimeclass Uri;
    }
}
namespace Windows
{
    namespace Security
    {
        namespace Authentication
        {
            namespace Web
            {
                typedef enum WebAuthenticationStatus WebAuthenticationStatus;

                typedef enum WebAuthenticationOptions WebAuthenticationOptions;

                interface IWebAuthenticationResult;

                interface IWebAuthenticationBrokerStatics;

                runtimeclass WebAuthenticationResult;

                runtimeclass WebAuthenticationBroker;
            }
        }
    }
}

// Generic instantiations
namespace Windows
{
    namespace Security
    {
        namespace Authentication
        {
            namespace Web
            {
                declare
                {
                    interface Windows.Foundation.IAsyncOperation<Windows.Security.Authentication.Web.WebAuthenticationResult*>;
                }
            }
        }
    }
}

// Type definition
namespace Windows
{
    namespace Security
    {
        namespace Authentication
        {
            namespace Web
            {
                [version(0x06020000)]
                enum WebAuthenticationStatus
                {
                    Success    = 0,
                    UserCancel = 1,
                    ErrorHttp  = 2
                };

                [version(0x06020000)]
                [flags]
                enum WebAuthenticationOptions
                {
                    None                = 0x0,
                    SilentMode          = 0x1,
                    UseTitle            = 0x2,
                    UseHttpPost         = 0x4,
                    UseCorporateNetwork = 0x8
                };

                [uuid(64002B4B-EDE9-470A-A5CD-0323FAF6E262)]
                [version(0x06020000)]
                [exclusiveto(Windows.Security.Authentication.Web.WebAuthenticationResult)]
                interface IWebAuthenticationResult : IInspectable
                {
                    [propget] HRESULT ResponseData([out] [retval] HSTRING* value);
                    [propget] HRESULT ResponseStatus([out] [retval] Windows.Security.Authentication.Web.WebAuthenticationStatus* value);
                    [propget] HRESULT ResponseErrorDetail([out] [retval] UINT32* value);
                }

                [uuid(2F149F1A-E673-40B5-BC22-201A6864A37B)]
                [exclusiveto(Windows.Security.Authentication.Web.WebAuthenticationBroker)]
                [version(0x06020000)]
                interface IWebAuthenticationBrokerStatics : IInspectable
                {
                    [overload("AuthenticateAsync")] HRESULT AuthenticateWithCallbackUriAsync([in] Windows.Security.Authentication.Web.WebAuthenticationOptions options, [in] Windows.Foundation.Uri* requestUri, [in] Windows.Foundation.Uri* callbackUri, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Security.Authentication.Web.WebAuthenticationResult*>** asyncInfo);
                    [overload("AuthenticateAsync")] HRESULT AuthenticateWithoutCallbackUriAsync([in] Windows.Security.Authentication.Web.WebAuthenticationOptions options, [in] Windows.Foundation.Uri* requestUri, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Security.Authentication.Web.WebAuthenticationResult*>** asyncInfo);
                    HRESULT GetCurrentApplicationCallbackUri([out] [retval] Windows.Foundation.Uri** callbackUri);
                }

                [version(0x06020000)]
                runtimeclass WebAuthenticationResult
                {
                    [default] interface Windows.Security.Authentication.Web.IWebAuthenticationResult;
                }

                [version(0x06020000)]
                [static(Windows.Security.Authentication.Web.IWebAuthenticationBrokerStatics, 0x06020000)]
                [threading(both)]
                runtimeclass WebAuthenticationBroker
                {
                }
            }
        }
    }
}
