// WARNING: Please don't edit this file. It was generated by C++/WinRT // v2.0.250303.1 #pragma once #ifndef WINRT_Microsoft_Windows_AppLifecycle_0_H #define WINRT_Microsoft_Windows_AppLifecycle_0_H WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Core { enum class AppRestartFailureReason : int32_t; } WINRT_EXPORT namespace winrt::Windows::Foundation { template struct WINRT_IMPL_EMPTY_BASES EventHandler; struct EventRegistrationToken; struct IAsyncAction; } WINRT_EXPORT namespace winrt::Microsoft::Windows::AppLifecycle { enum class ExtendedActivationKind : int32_t { Launch = 0, Search = 1, ShareTarget = 2, File = 3, Protocol = 4, FileOpenPicker = 5, FileSavePicker = 6, CachedFileUpdater = 7, ContactPicker = 8, Device = 9, PrintTaskSettings = 10, CameraSettings = 11, RestrictedLaunch = 12, AppointmentsProvider = 13, Contact = 14, LockScreenCall = 15, VoiceCommand = 16, LockScreen = 17, PickerReturned = 1000, WalletAction = 1001, PickFileContinuation = 1002, PickSaveFileContinuation = 1003, PickFolderContinuation = 1004, WebAuthenticationBrokerContinuation = 1005, WebAccountProvider = 1006, ComponentUI = 1007, ProtocolForResults = 1009, ToastNotification = 1010, Print3DWorkflow = 1011, DialReceiver = 1012, DevicePairing = 1013, UserDataAccountsProvider = 1014, FilePickerExperience = 1015, LockScreenComponent = 1016, ContactPanel = 1017, PrintWorkflowForegroundTask = 1018, GameUIProvider = 1019, StartupTask = 1020, CommandLineLaunch = 1021, BarcodeScannerProvider = 1022, PrintSupportJobUI = 1023, PrintSupportSettingsUI = 1024, PhoneCallActivation = 1025, VpnForeground = 1026, Push = 5000, AppNotification = 5001, }; struct IActivationRegistrationManagerStatics; struct IAppActivationArguments; struct IAppInstance; struct IAppInstanceStatics; struct IAppInstanceStatics2; struct ActivationRegistrationManager; struct AppActivationArguments; struct AppInstance; struct AppLifecycleContract; } namespace winrt::impl { template <> struct category { using type = interface_category; }; template <> struct category< winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> { using type = interface_category; }; template <> struct category { using type = interface_category; }; template <> struct category { using type = interface_category; }; template <> struct category { using type = interface_category; }; template <> struct category< winrt::Microsoft::Windows::AppLifecycle::ActivationRegistrationManager> { using type = class_category; }; template <> struct category< winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments> { using type = class_category; }; template <> struct category { using type = class_category; }; template <> struct category< winrt::Microsoft::Windows::AppLifecycle::ExtendedActivationKind> { using type = enum_category; }; template <> inline constexpr auto& name_v< winrt::Microsoft::Windows::AppLifecycle::ActivationRegistrationManager> = L"Microsoft.Windows.AppLifecycle.ActivationRegistrationManager"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.AppActivationArguments"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.AppInstance"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.ExtendedActivationKind"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.IAppActivationArguments"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.IAppInstance"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.IAppInstanceStatics"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.IAppInstanceStatics2"; template <> inline constexpr auto& name_v = L"Microsoft.Windows.AppLifecycle.AppLifecycleContract"; template <> inline constexpr guid guid_v{ 0x5AC4E92E, 0x017B, 0x5D68, {0x81, 0x98, 0xF6, 0x86, 0x36, 0xAB, 0x99, 0xD3}}; // 5AC4E92E-017B-5D68-8198-F68636AB99D3 template <> inline constexpr guid guid_v{ 0x14F99EAF, 0x1580, 0x5062, {0xBD, 0xC8, 0xD5, 0xD1, 0xC3, 0x11, 0x38, 0xFB}}; // 14F99EAF-1580-5062-BDC8-D5D1C31138FB template <> inline constexpr guid guid_v{ 0x75766AE4, 0x0239, 0x5A26, {0xB9, 0xDA, 0xD5, 0xBF, 0xC7, 0x5A, 0x48, 0x66}}; // 75766AE4-0239-5A26-B9DA-D5BFC75A4866 template <> inline constexpr guid guid_v{ 0x4F414B25, 0x8330, 0x5A9B, {0xBB, 0xC1, 0x82, 0x29, 0xD4, 0x79, 0x64, 0x9D}}; // 4F414B25-8330-5A9B-BBC1-8229D479649D template <> inline constexpr guid guid_v{ 0xFE9F1885, 0x7160, 0x5397, {0xBA, 0x9B, 0x58, 0x90, 0xB2, 0x4F, 0xDC, 0x04}}; // FE9F1885-7160-5397-BA9B-5890B24FDC04 template <> struct default_interface< winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments> { using type = winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments; }; template <> struct default_interface { using type = winrt::Microsoft::Windows::AppLifecycle::IAppInstance; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall RegisterForFileTypeActivation(uint32_t, void**, void*, void*, uint32_t, void**, void*) noexcept = 0; virtual int32_t __stdcall RegisterForProtocolActivation(void*, void*, void*, void*) noexcept = 0; virtual int32_t __stdcall RegisterForStartupActivation(void*, void*) noexcept = 0; virtual int32_t __stdcall UnregisterForFileTypeActivation( uint32_t, void**, void*) noexcept = 0; virtual int32_t __stdcall UnregisterForProtocolActivation( void*, void*) noexcept = 0; virtual int32_t __stdcall UnregisterForStartupActivation( void*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Kind(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Data(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall UnregisterKey() noexcept = 0; virtual int32_t __stdcall RedirectActivationToAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall GetActivatedEventArgs(void**) noexcept = 0; virtual int32_t __stdcall add_Activated(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Activated(winrt::event_token) noexcept = 0; virtual int32_t __stdcall get_Key(void**) noexcept = 0; virtual int32_t __stdcall get_IsCurrent(bool*) noexcept = 0; virtual int32_t __stdcall get_ProcessId(uint32_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetCurrent(void**) noexcept = 0; virtual int32_t __stdcall GetInstances(void**) noexcept = 0; virtual int32_t __stdcall FindOrRegisterForKey(void*, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall Restart(void*, int32_t*) noexcept = 0; }; }; template struct consume_Microsoft_Windows_AppLifecycle_IActivationRegistrationManagerStatics { auto RegisterForFileTypeActivation( array_view supportedFileTypes, param::hstring const& logo, param::hstring const& displayName, array_view supportedVerbs, param::hstring const& exePath) const; auto RegisterForProtocolActivation(param::hstring const& scheme, param::hstring const& logo, param::hstring const& displayName, param::hstring const& exePath) const; auto RegisterForStartupActivation(param::hstring const& taskId, param::hstring const& exePath) const; auto UnregisterForFileTypeActivation(array_view fileTypes, param::hstring const& exePath) const; auto UnregisterForProtocolActivation(param::hstring const& scheme, param::hstring const& exePath) const; auto UnregisterForStartupActivation(param::hstring const& taskId) const; }; template <> struct consume { template using type = consume_Microsoft_Windows_AppLifecycle_IActivationRegistrationManagerStatics< D>; }; template struct consume_Microsoft_Windows_AppLifecycle_IAppActivationArguments { [[nodiscard]] auto Kind() const; [[nodiscard]] auto Data() const; }; template <> struct consume< winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> { template using type = consume_Microsoft_Windows_AppLifecycle_IAppActivationArguments; }; template struct consume_Microsoft_Windows_AppLifecycle_IAppInstance { auto UnregisterKey() const; auto RedirectActivationToAsync( winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments const& args) const; auto GetActivatedEventArgs() const; auto Activated(winrt::Windows::Foundation::EventHandler< winrt::Microsoft::Windows::AppLifecycle:: AppActivationArguments> const& handler) const; using Activated_revoker = impl::event_revoker::remove_Activated>; [[nodiscard]] auto Activated( auto_revoke_t, winrt::Windows::Foundation::EventHandler< winrt::Microsoft::Windows::AppLifecycle:: AppActivationArguments> const& handler) const; auto Activated(winrt::event_token const& token) const noexcept; [[nodiscard]] auto Key() const; [[nodiscard]] auto IsCurrent() const; [[nodiscard]] auto ProcessId() const; }; template <> struct consume { template using type = consume_Microsoft_Windows_AppLifecycle_IAppInstance; }; template struct consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics { auto GetCurrent() const; auto GetInstances() const; auto FindOrRegisterForKey(param::hstring const& key) const; }; template <> struct consume { template using type = consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics; }; template struct consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics2 { auto Restart(param::hstring const& arguments) const; }; template <> struct consume { template using type = consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics2; }; } // namespace winrt::impl #endif