Files
nearby/internal/platform/implementation/windows/generated/winrt/impl/Microsoft.Windows.AppLifecycle.0.h
T
2026-01-27 23:46:02 -08:00

352 lines
13 KiB
C++

// 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 <typename T>
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<winrt::Microsoft::Windows::AppLifecycle::
IActivationRegistrationManagerStatics> {
using type = interface_category;
};
template <>
struct category<
winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> {
using type = interface_category;
};
template <>
struct category<winrt::Microsoft::Windows::AppLifecycle::IAppInstance> {
using type = interface_category;
};
template <>
struct category<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics> {
using type = interface_category;
};
template <>
struct category<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics2> {
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<winrt::Microsoft::Windows::AppLifecycle::AppInstance> {
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<winrt::Microsoft::Windows::AppLifecycle::AppActivationArguments> =
L"Microsoft.Windows.AppLifecycle.AppActivationArguments";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::AppInstance> =
L"Microsoft.Windows.AppLifecycle.AppInstance";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::ExtendedActivationKind> =
L"Microsoft.Windows.AppLifecycle.ExtendedActivationKind";
template <>
inline constexpr auto& name_v<winrt::Microsoft::Windows::AppLifecycle::
IActivationRegistrationManagerStatics> =
L"Microsoft.Windows.AppLifecycle.IActivationRegistrationManagerStatics";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> =
L"Microsoft.Windows.AppLifecycle.IAppActivationArguments";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstance> =
L"Microsoft.Windows.AppLifecycle.IAppInstance";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics> =
L"Microsoft.Windows.AppLifecycle.IAppInstanceStatics";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics2> =
L"Microsoft.Windows.AppLifecycle.IAppInstanceStatics2";
template <>
inline constexpr auto&
name_v<winrt::Microsoft::Windows::AppLifecycle::AppLifecycleContract> =
L"Microsoft.Windows.AppLifecycle.AppLifecycleContract";
template <>
inline constexpr guid guid_v<winrt::Microsoft::Windows::AppLifecycle::
IActivationRegistrationManagerStatics>{
0x5AC4E92E,
0x017B,
0x5D68,
{0x81, 0x98, 0xF6, 0x86, 0x36, 0xAB, 0x99,
0xD3}}; // 5AC4E92E-017B-5D68-8198-F68636AB99D3
template <>
inline constexpr guid
guid_v<winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments>{
0x14F99EAF,
0x1580,
0x5062,
{0xBD, 0xC8, 0xD5, 0xD1, 0xC3, 0x11, 0x38,
0xFB}}; // 14F99EAF-1580-5062-BDC8-D5D1C31138FB
template <>
inline constexpr guid
guid_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstance>{
0x75766AE4,
0x0239,
0x5A26,
{0xB9, 0xDA, 0xD5, 0xBF, 0xC7, 0x5A, 0x48,
0x66}}; // 75766AE4-0239-5A26-B9DA-D5BFC75A4866
template <>
inline constexpr guid
guid_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics>{
0x4F414B25,
0x8330,
0x5A9B,
{0xBB, 0xC1, 0x82, 0x29, 0xD4, 0x79, 0x64,
0x9D}}; // 4F414B25-8330-5A9B-BBC1-8229D479649D
template <>
inline constexpr guid
guid_v<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics2>{
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<winrt::Microsoft::Windows::AppLifecycle::AppInstance> {
using type = winrt::Microsoft::Windows::AppLifecycle::IAppInstance;
};
template <>
struct abi<winrt::Microsoft::Windows::AppLifecycle::
IActivationRegistrationManagerStatics> {
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<winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> {
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<winrt::Microsoft::Windows::AppLifecycle::IAppInstance> {
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<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics> {
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<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics2> {
struct WINRT_IMPL_NOVTABLE type : inspectable_abi {
virtual int32_t __stdcall Restart(void*, int32_t*) noexcept = 0;
};
};
template <typename D>
struct
consume_Microsoft_Windows_AppLifecycle_IActivationRegistrationManagerStatics {
auto RegisterForFileTypeActivation(
array_view<hstring const> supportedFileTypes, param::hstring const& logo,
param::hstring const& displayName,
array_view<hstring const> 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<hstring const> 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<winrt::Microsoft::Windows::AppLifecycle::
IActivationRegistrationManagerStatics> {
template <typename D>
using type =
consume_Microsoft_Windows_AppLifecycle_IActivationRegistrationManagerStatics<
D>;
};
template <typename D>
struct consume_Microsoft_Windows_AppLifecycle_IAppActivationArguments {
[[nodiscard]] auto Kind() const;
[[nodiscard]] auto Data() const;
};
template <>
struct consume<
winrt::Microsoft::Windows::AppLifecycle::IAppActivationArguments> {
template <typename D>
using type =
consume_Microsoft_Windows_AppLifecycle_IAppActivationArguments<D>;
};
template <typename D>
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<winrt::Microsoft::Windows::AppLifecycle::IAppInstance,
&impl::abi_t<winrt::Microsoft::Windows::AppLifecycle::
IAppInstance>::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<winrt::Microsoft::Windows::AppLifecycle::IAppInstance> {
template <typename D>
using type = consume_Microsoft_Windows_AppLifecycle_IAppInstance<D>;
};
template <typename D>
struct consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics {
auto GetCurrent() const;
auto GetInstances() const;
auto FindOrRegisterForKey(param::hstring const& key) const;
};
template <>
struct consume<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics> {
template <typename D>
using type = consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics<D>;
};
template <typename D>
struct consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics2 {
auto Restart(param::hstring const& arguments) const;
};
template <>
struct consume<winrt::Microsoft::Windows::AppLifecycle::IAppInstanceStatics2> {
template <typename D>
using type = consume_Microsoft_Windows_AppLifecycle_IAppInstanceStatics2<D>;
};
} // namespace winrt::impl
#endif