Files
nearby/cpp/platform/impl/windows/generated/winrt/impl/Windows.System.2.h
T
hai007 b1815095dd BEGIN_PUBLIC
Microsoft has updated the winrt library
END_PUBLC

PiperOrigin-RevId: 387168248
2021-07-29 03:27:37 -07:00

505 lines
40 KiB
C++

// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
#ifndef WINRT_Windows_System_2_H
#define WINRT_Windows_System_2_H
#include "winrt/impl/Windows.Foundation.1.h"
#include "winrt/impl/Windows.Foundation.Collections.1.h"
#include "winrt/impl/Windows.Storage.1.h"
#include "winrt/impl/Windows.System.RemoteSystems.1.h"
#include "winrt/impl/Windows.System.1.h"
WINRT_EXPORT namespace winrt::Windows::System
{
struct DispatcherQueueHandler : Windows::Foundation::IUnknown
{
DispatcherQueueHandler(std::nullptr_t = nullptr) noexcept {}
DispatcherQueueHandler(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
DispatcherQueueHandler(DispatcherQueueHandler const&) noexcept = default;
DispatcherQueueHandler(DispatcherQueueHandler&&) noexcept = default;
DispatcherQueueHandler& operator=(DispatcherQueueHandler const&) & noexcept = default;
DispatcherQueueHandler& operator=(DispatcherQueueHandler&&) & noexcept = default;
template <typename L> DispatcherQueueHandler(L lambda);
template <typename F> DispatcherQueueHandler(F* function);
template <typename O, typename M> DispatcherQueueHandler(O* object, M method);
template <typename O, typename M> DispatcherQueueHandler(com_ptr<O>&& object, M method);
template <typename O, typename M> DispatcherQueueHandler(weak_ref<O>&& object, M method);
auto operator()() const;
};
struct __declspec(empty_bases) AppActivationResult : winrt::Windows::System::IAppActivationResult
{
AppActivationResult(std::nullptr_t) noexcept {}
AppActivationResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppActivationResult(ptr, take_ownership_from_abi) {}
AppActivationResult(AppActivationResult const&) noexcept = default;
AppActivationResult(AppActivationResult&&) noexcept = default;
AppActivationResult& operator=(AppActivationResult const&) & noexcept = default;
AppActivationResult& operator=(AppActivationResult&&) & noexcept = default;
};
struct __declspec(empty_bases) AppDiagnosticInfo : winrt::Windows::System::IAppDiagnosticInfo,
impl::require<AppDiagnosticInfo, winrt::Windows::System::IAppDiagnosticInfo2, winrt::Windows::System::IAppDiagnosticInfo3>
{
AppDiagnosticInfo(std::nullptr_t) noexcept {}
AppDiagnosticInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppDiagnosticInfo(ptr, take_ownership_from_abi) {}
AppDiagnosticInfo(AppDiagnosticInfo const&) noexcept = default;
AppDiagnosticInfo(AppDiagnosticInfo&&) noexcept = default;
AppDiagnosticInfo& operator=(AppDiagnosticInfo const&) & noexcept = default;
AppDiagnosticInfo& operator=(AppDiagnosticInfo&&) & noexcept = default;
static auto RequestInfoAsync();
static auto CreateWatcher();
static auto RequestAccessAsync();
static auto RequestInfoForPackageAsync(param::hstring const& packageFamilyName);
static auto RequestInfoForAppAsync();
static auto RequestInfoForAppAsync(param::hstring const& appUserModelId);
};
struct __declspec(empty_bases) AppDiagnosticInfoWatcher : winrt::Windows::System::IAppDiagnosticInfoWatcher
{
AppDiagnosticInfoWatcher(std::nullptr_t) noexcept {}
AppDiagnosticInfoWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppDiagnosticInfoWatcher(ptr, take_ownership_from_abi) {}
AppDiagnosticInfoWatcher(AppDiagnosticInfoWatcher const&) noexcept = default;
AppDiagnosticInfoWatcher(AppDiagnosticInfoWatcher&&) noexcept = default;
AppDiagnosticInfoWatcher& operator=(AppDiagnosticInfoWatcher const&) & noexcept = default;
AppDiagnosticInfoWatcher& operator=(AppDiagnosticInfoWatcher&&) & noexcept = default;
};
struct __declspec(empty_bases) AppDiagnosticInfoWatcherEventArgs : winrt::Windows::System::IAppDiagnosticInfoWatcherEventArgs
{
AppDiagnosticInfoWatcherEventArgs(std::nullptr_t) noexcept {}
AppDiagnosticInfoWatcherEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppDiagnosticInfoWatcherEventArgs(ptr, take_ownership_from_abi) {}
AppDiagnosticInfoWatcherEventArgs(AppDiagnosticInfoWatcherEventArgs const&) noexcept = default;
AppDiagnosticInfoWatcherEventArgs(AppDiagnosticInfoWatcherEventArgs&&) noexcept = default;
AppDiagnosticInfoWatcherEventArgs& operator=(AppDiagnosticInfoWatcherEventArgs const&) & noexcept = default;
AppDiagnosticInfoWatcherEventArgs& operator=(AppDiagnosticInfoWatcherEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) AppExecutionStateChangeResult : winrt::Windows::System::IAppExecutionStateChangeResult
{
AppExecutionStateChangeResult(std::nullptr_t) noexcept {}
AppExecutionStateChangeResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppExecutionStateChangeResult(ptr, take_ownership_from_abi) {}
AppExecutionStateChangeResult(AppExecutionStateChangeResult const&) noexcept = default;
AppExecutionStateChangeResult(AppExecutionStateChangeResult&&) noexcept = default;
AppExecutionStateChangeResult& operator=(AppExecutionStateChangeResult const&) & noexcept = default;
AppExecutionStateChangeResult& operator=(AppExecutionStateChangeResult&&) & noexcept = default;
};
struct __declspec(empty_bases) AppMemoryReport : winrt::Windows::System::IAppMemoryReport,
impl::require<AppMemoryReport, winrt::Windows::System::IAppMemoryReport2>
{
AppMemoryReport(std::nullptr_t) noexcept {}
AppMemoryReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppMemoryReport(ptr, take_ownership_from_abi) {}
AppMemoryReport(AppMemoryReport const&) noexcept = default;
AppMemoryReport(AppMemoryReport&&) noexcept = default;
AppMemoryReport& operator=(AppMemoryReport const&) & noexcept = default;
AppMemoryReport& operator=(AppMemoryReport&&) & noexcept = default;
};
struct __declspec(empty_bases) AppMemoryUsageLimitChangingEventArgs : winrt::Windows::System::IAppMemoryUsageLimitChangingEventArgs
{
AppMemoryUsageLimitChangingEventArgs(std::nullptr_t) noexcept {}
AppMemoryUsageLimitChangingEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppMemoryUsageLimitChangingEventArgs(ptr, take_ownership_from_abi) {}
AppMemoryUsageLimitChangingEventArgs(AppMemoryUsageLimitChangingEventArgs const&) noexcept = default;
AppMemoryUsageLimitChangingEventArgs(AppMemoryUsageLimitChangingEventArgs&&) noexcept = default;
AppMemoryUsageLimitChangingEventArgs& operator=(AppMemoryUsageLimitChangingEventArgs const&) & noexcept = default;
AppMemoryUsageLimitChangingEventArgs& operator=(AppMemoryUsageLimitChangingEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupBackgroundTaskReport : winrt::Windows::System::IAppResourceGroupBackgroundTaskReport
{
AppResourceGroupBackgroundTaskReport(std::nullptr_t) noexcept {}
AppResourceGroupBackgroundTaskReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupBackgroundTaskReport(ptr, take_ownership_from_abi) {}
AppResourceGroupBackgroundTaskReport(AppResourceGroupBackgroundTaskReport const&) noexcept = default;
AppResourceGroupBackgroundTaskReport(AppResourceGroupBackgroundTaskReport&&) noexcept = default;
AppResourceGroupBackgroundTaskReport& operator=(AppResourceGroupBackgroundTaskReport const&) & noexcept = default;
AppResourceGroupBackgroundTaskReport& operator=(AppResourceGroupBackgroundTaskReport&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupInfo : winrt::Windows::System::IAppResourceGroupInfo,
impl::require<AppResourceGroupInfo, winrt::Windows::System::IAppResourceGroupInfo2>
{
AppResourceGroupInfo(std::nullptr_t) noexcept {}
AppResourceGroupInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupInfo(ptr, take_ownership_from_abi) {}
AppResourceGroupInfo(AppResourceGroupInfo const&) noexcept = default;
AppResourceGroupInfo(AppResourceGroupInfo&&) noexcept = default;
AppResourceGroupInfo& operator=(AppResourceGroupInfo const&) & noexcept = default;
AppResourceGroupInfo& operator=(AppResourceGroupInfo&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupInfoWatcher : winrt::Windows::System::IAppResourceGroupInfoWatcher
{
AppResourceGroupInfoWatcher(std::nullptr_t) noexcept {}
AppResourceGroupInfoWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupInfoWatcher(ptr, take_ownership_from_abi) {}
AppResourceGroupInfoWatcher(AppResourceGroupInfoWatcher const&) noexcept = default;
AppResourceGroupInfoWatcher(AppResourceGroupInfoWatcher&&) noexcept = default;
AppResourceGroupInfoWatcher& operator=(AppResourceGroupInfoWatcher const&) & noexcept = default;
AppResourceGroupInfoWatcher& operator=(AppResourceGroupInfoWatcher&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupInfoWatcherEventArgs : winrt::Windows::System::IAppResourceGroupInfoWatcherEventArgs
{
AppResourceGroupInfoWatcherEventArgs(std::nullptr_t) noexcept {}
AppResourceGroupInfoWatcherEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupInfoWatcherEventArgs(ptr, take_ownership_from_abi) {}
AppResourceGroupInfoWatcherEventArgs(AppResourceGroupInfoWatcherEventArgs const&) noexcept = default;
AppResourceGroupInfoWatcherEventArgs(AppResourceGroupInfoWatcherEventArgs&&) noexcept = default;
AppResourceGroupInfoWatcherEventArgs& operator=(AppResourceGroupInfoWatcherEventArgs const&) & noexcept = default;
AppResourceGroupInfoWatcherEventArgs& operator=(AppResourceGroupInfoWatcherEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupInfoWatcherExecutionStateChangedEventArgs : winrt::Windows::System::IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs
{
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(std::nullptr_t) noexcept {}
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupInfoWatcherExecutionStateChangedEventArgs(ptr, take_ownership_from_abi) {}
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs const&) noexcept = default;
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs&&) noexcept = default;
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs& operator=(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs const&) & noexcept = default;
AppResourceGroupInfoWatcherExecutionStateChangedEventArgs& operator=(AppResourceGroupInfoWatcherExecutionStateChangedEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupMemoryReport : winrt::Windows::System::IAppResourceGroupMemoryReport
{
AppResourceGroupMemoryReport(std::nullptr_t) noexcept {}
AppResourceGroupMemoryReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupMemoryReport(ptr, take_ownership_from_abi) {}
AppResourceGroupMemoryReport(AppResourceGroupMemoryReport const&) noexcept = default;
AppResourceGroupMemoryReport(AppResourceGroupMemoryReport&&) noexcept = default;
AppResourceGroupMemoryReport& operator=(AppResourceGroupMemoryReport const&) & noexcept = default;
AppResourceGroupMemoryReport& operator=(AppResourceGroupMemoryReport&&) & noexcept = default;
};
struct __declspec(empty_bases) AppResourceGroupStateReport : winrt::Windows::System::IAppResourceGroupStateReport
{
AppResourceGroupStateReport(std::nullptr_t) noexcept {}
AppResourceGroupStateReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppResourceGroupStateReport(ptr, take_ownership_from_abi) {}
AppResourceGroupStateReport(AppResourceGroupStateReport const&) noexcept = default;
AppResourceGroupStateReport(AppResourceGroupStateReport&&) noexcept = default;
AppResourceGroupStateReport& operator=(AppResourceGroupStateReport const&) & noexcept = default;
AppResourceGroupStateReport& operator=(AppResourceGroupStateReport&&) & noexcept = default;
};
struct __declspec(empty_bases) AppUriHandlerHost : winrt::Windows::System::IAppUriHandlerHost
{
AppUriHandlerHost(std::nullptr_t) noexcept {}
AppUriHandlerHost(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppUriHandlerHost(ptr, take_ownership_from_abi) {}
AppUriHandlerHost();
explicit AppUriHandlerHost(param::hstring const& name);
AppUriHandlerHost(AppUriHandlerHost const&) noexcept = default;
AppUriHandlerHost(AppUriHandlerHost&&) noexcept = default;
AppUriHandlerHost& operator=(AppUriHandlerHost const&) & noexcept = default;
AppUriHandlerHost& operator=(AppUriHandlerHost&&) & noexcept = default;
};
struct __declspec(empty_bases) AppUriHandlerRegistration : winrt::Windows::System::IAppUriHandlerRegistration
{
AppUriHandlerRegistration(std::nullptr_t) noexcept {}
AppUriHandlerRegistration(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppUriHandlerRegistration(ptr, take_ownership_from_abi) {}
AppUriHandlerRegistration(AppUriHandlerRegistration const&) noexcept = default;
AppUriHandlerRegistration(AppUriHandlerRegistration&&) noexcept = default;
AppUriHandlerRegistration& operator=(AppUriHandlerRegistration const&) & noexcept = default;
AppUriHandlerRegistration& operator=(AppUriHandlerRegistration&&) & noexcept = default;
};
struct __declspec(empty_bases) AppUriHandlerRegistrationManager : winrt::Windows::System::IAppUriHandlerRegistrationManager
{
AppUriHandlerRegistrationManager(std::nullptr_t) noexcept {}
AppUriHandlerRegistrationManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IAppUriHandlerRegistrationManager(ptr, take_ownership_from_abi) {}
AppUriHandlerRegistrationManager(AppUriHandlerRegistrationManager const&) noexcept = default;
AppUriHandlerRegistrationManager(AppUriHandlerRegistrationManager&&) noexcept = default;
AppUriHandlerRegistrationManager& operator=(AppUriHandlerRegistrationManager const&) & noexcept = default;
AppUriHandlerRegistrationManager& operator=(AppUriHandlerRegistrationManager&&) & noexcept = default;
static auto GetDefault();
static auto GetForUser(winrt::Windows::System::User const& user);
};
struct DateTimeSettings
{
DateTimeSettings() = delete;
static auto SetSystemDateTime(winrt::Windows::Foundation::DateTime const& utcDateTime);
};
struct __declspec(empty_bases) DispatcherQueue : winrt::Windows::System::IDispatcherQueue,
impl::require<DispatcherQueue, winrt::Windows::System::IDispatcherQueue2>
{
DispatcherQueue(std::nullptr_t) noexcept {}
DispatcherQueue(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IDispatcherQueue(ptr, take_ownership_from_abi) {}
DispatcherQueue(DispatcherQueue const&) noexcept = default;
DispatcherQueue(DispatcherQueue&&) noexcept = default;
DispatcherQueue& operator=(DispatcherQueue const&) & noexcept = default;
DispatcherQueue& operator=(DispatcherQueue&&) & noexcept = default;
static auto GetForCurrentThread();
};
struct __declspec(empty_bases) DispatcherQueueController : winrt::Windows::System::IDispatcherQueueController
{
DispatcherQueueController(std::nullptr_t) noexcept {}
DispatcherQueueController(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IDispatcherQueueController(ptr, take_ownership_from_abi) {}
DispatcherQueueController(DispatcherQueueController const&) noexcept = default;
DispatcherQueueController(DispatcherQueueController&&) noexcept = default;
DispatcherQueueController& operator=(DispatcherQueueController const&) & noexcept = default;
DispatcherQueueController& operator=(DispatcherQueueController&&) & noexcept = default;
static auto CreateOnDedicatedThread();
};
struct __declspec(empty_bases) DispatcherQueueShutdownStartingEventArgs : winrt::Windows::System::IDispatcherQueueShutdownStartingEventArgs
{
DispatcherQueueShutdownStartingEventArgs(std::nullptr_t) noexcept {}
DispatcherQueueShutdownStartingEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IDispatcherQueueShutdownStartingEventArgs(ptr, take_ownership_from_abi) {}
DispatcherQueueShutdownStartingEventArgs(DispatcherQueueShutdownStartingEventArgs const&) noexcept = default;
DispatcherQueueShutdownStartingEventArgs(DispatcherQueueShutdownStartingEventArgs&&) noexcept = default;
DispatcherQueueShutdownStartingEventArgs& operator=(DispatcherQueueShutdownStartingEventArgs const&) & noexcept = default;
DispatcherQueueShutdownStartingEventArgs& operator=(DispatcherQueueShutdownStartingEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) DispatcherQueueTimer : winrt::Windows::System::IDispatcherQueueTimer
{
DispatcherQueueTimer(std::nullptr_t) noexcept {}
DispatcherQueueTimer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IDispatcherQueueTimer(ptr, take_ownership_from_abi) {}
DispatcherQueueTimer(DispatcherQueueTimer const&) noexcept = default;
DispatcherQueueTimer(DispatcherQueueTimer&&) noexcept = default;
DispatcherQueueTimer& operator=(DispatcherQueueTimer const&) & noexcept = default;
DispatcherQueueTimer& operator=(DispatcherQueueTimer&&) & noexcept = default;
};
struct __declspec(empty_bases) FolderLauncherOptions : winrt::Windows::System::IFolderLauncherOptions,
impl::require<FolderLauncherOptions, winrt::Windows::System::ILauncherViewOptions>
{
FolderLauncherOptions(std::nullptr_t) noexcept {}
FolderLauncherOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IFolderLauncherOptions(ptr, take_ownership_from_abi) {}
FolderLauncherOptions();
FolderLauncherOptions(FolderLauncherOptions const&) noexcept = default;
FolderLauncherOptions(FolderLauncherOptions&&) noexcept = default;
FolderLauncherOptions& operator=(FolderLauncherOptions const&) & noexcept = default;
FolderLauncherOptions& operator=(FolderLauncherOptions&&) & noexcept = default;
};
struct KnownUserProperties
{
KnownUserProperties() = delete;
[[nodiscard]] static auto DisplayName();
[[nodiscard]] static auto FirstName();
[[nodiscard]] static auto LastName();
[[nodiscard]] static auto ProviderName();
[[nodiscard]] static auto AccountName();
[[nodiscard]] static auto GuestHost();
[[nodiscard]] static auto PrincipalName();
[[nodiscard]] static auto DomainName();
[[nodiscard]] static auto SessionInitiationProtocolUri();
};
struct __declspec(empty_bases) LaunchUriResult : winrt::Windows::System::ILaunchUriResult
{
LaunchUriResult(std::nullptr_t) noexcept {}
LaunchUriResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::ILaunchUriResult(ptr, take_ownership_from_abi) {}
LaunchUriResult(LaunchUriResult const&) noexcept = default;
LaunchUriResult(LaunchUriResult&&) noexcept = default;
LaunchUriResult& operator=(LaunchUriResult const&) & noexcept = default;
LaunchUriResult& operator=(LaunchUriResult&&) & noexcept = default;
};
struct Launcher
{
Launcher() = delete;
static auto LaunchFileAsync(winrt::Windows::Storage::IStorageFile const& file);
static auto LaunchFileAsync(winrt::Windows::Storage::IStorageFile const& file, winrt::Windows::System::LauncherOptions const& options);
static auto LaunchUriAsync(winrt::Windows::Foundation::Uri const& uri);
static auto LaunchUriAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options);
static auto LaunchUriForResultsAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options);
static auto LaunchUriForResultsAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options, winrt::Windows::Foundation::Collections::ValueSet const& inputData);
static auto LaunchUriAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options, winrt::Windows::Foundation::Collections::ValueSet const& inputData);
static auto QueryUriSupportAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LaunchQuerySupportType const& launchQuerySupportType);
static auto QueryUriSupportAsync(winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LaunchQuerySupportType const& launchQuerySupportType, param::hstring const& packageFamilyName);
static auto QueryFileSupportAsync(winrt::Windows::Storage::StorageFile const& file);
static auto QueryFileSupportAsync(winrt::Windows::Storage::StorageFile const& file, param::hstring const& packageFamilyName);
static auto FindUriSchemeHandlersAsync(param::hstring const& scheme);
static auto FindUriSchemeHandlersAsync(param::hstring const& scheme, winrt::Windows::System::LaunchQuerySupportType const& launchQuerySupportType);
static auto FindFileHandlersAsync(param::hstring const& extension);
static auto LaunchFolderAsync(winrt::Windows::Storage::IStorageFolder const& folder);
static auto LaunchFolderAsync(winrt::Windows::Storage::IStorageFolder const& folder, winrt::Windows::System::FolderLauncherOptions const& options);
static auto QueryAppUriSupportAsync(winrt::Windows::Foundation::Uri const& uri);
static auto QueryAppUriSupportAsync(winrt::Windows::Foundation::Uri const& uri, param::hstring const& packageFamilyName);
static auto FindAppUriHandlersAsync(winrt::Windows::Foundation::Uri const& uri);
static auto LaunchUriForUserAsync(winrt::Windows::System::User const& user, winrt::Windows::Foundation::Uri const& uri);
static auto LaunchUriForUserAsync(winrt::Windows::System::User const& user, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options);
static auto LaunchUriForUserAsync(winrt::Windows::System::User const& user, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options, winrt::Windows::Foundation::Collections::ValueSet const& inputData);
static auto LaunchUriForResultsForUserAsync(winrt::Windows::System::User const& user, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options);
static auto LaunchUriForResultsForUserAsync(winrt::Windows::System::User const& user, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::LauncherOptions const& options, winrt::Windows::Foundation::Collections::ValueSet const& inputData);
static auto LaunchFolderPathAsync(param::hstring const& path);
static auto LaunchFolderPathAsync(param::hstring const& path, winrt::Windows::System::FolderLauncherOptions const& options);
static auto LaunchFolderPathForUserAsync(winrt::Windows::System::User const& user, param::hstring const& path);
static auto LaunchFolderPathForUserAsync(winrt::Windows::System::User const& user, param::hstring const& path, winrt::Windows::System::FolderLauncherOptions const& options);
};
struct __declspec(empty_bases) LauncherOptions : winrt::Windows::System::ILauncherOptions,
impl::require<LauncherOptions, winrt::Windows::System::ILauncherOptions2, winrt::Windows::System::ILauncherOptions3, winrt::Windows::System::ILauncherOptions4, winrt::Windows::System::ILauncherViewOptions>
{
LauncherOptions(std::nullptr_t) noexcept {}
LauncherOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::ILauncherOptions(ptr, take_ownership_from_abi) {}
LauncherOptions();
LauncherOptions(LauncherOptions const&) noexcept = default;
LauncherOptions(LauncherOptions&&) noexcept = default;
LauncherOptions& operator=(LauncherOptions const&) & noexcept = default;
LauncherOptions& operator=(LauncherOptions&&) & noexcept = default;
};
struct __declspec(empty_bases) LauncherUIOptions : winrt::Windows::System::ILauncherUIOptions
{
LauncherUIOptions(std::nullptr_t) noexcept {}
LauncherUIOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::ILauncherUIOptions(ptr, take_ownership_from_abi) {}
LauncherUIOptions(LauncherUIOptions const&) noexcept = default;
LauncherUIOptions(LauncherUIOptions&&) noexcept = default;
LauncherUIOptions& operator=(LauncherUIOptions const&) & noexcept = default;
LauncherUIOptions& operator=(LauncherUIOptions&&) & noexcept = default;
};
struct MemoryManager
{
MemoryManager() = delete;
[[nodiscard]] static auto AppMemoryUsage();
[[nodiscard]] static auto AppMemoryUsageLimit();
[[nodiscard]] static auto AppMemoryUsageLevel();
static auto AppMemoryUsageIncreased(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler);
using AppMemoryUsageIncreased_revoker = impl::factory_event_revoker<winrt::Windows::System::IMemoryManagerStatics, &impl::abi_t<winrt::Windows::System::IMemoryManagerStatics>::remove_AppMemoryUsageIncreased>;
[[nodiscard]] static AppMemoryUsageIncreased_revoker AppMemoryUsageIncreased(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler);
static auto AppMemoryUsageIncreased(winrt::event_token const& token);
static auto AppMemoryUsageDecreased(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler);
using AppMemoryUsageDecreased_revoker = impl::factory_event_revoker<winrt::Windows::System::IMemoryManagerStatics, &impl::abi_t<winrt::Windows::System::IMemoryManagerStatics>::remove_AppMemoryUsageDecreased>;
[[nodiscard]] static AppMemoryUsageDecreased_revoker AppMemoryUsageDecreased(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler);
static auto AppMemoryUsageDecreased(winrt::event_token const& token);
static auto AppMemoryUsageLimitChanging(winrt::Windows::Foundation::EventHandler<winrt::Windows::System::AppMemoryUsageLimitChangingEventArgs> const& handler);
using AppMemoryUsageLimitChanging_revoker = impl::factory_event_revoker<winrt::Windows::System::IMemoryManagerStatics, &impl::abi_t<winrt::Windows::System::IMemoryManagerStatics>::remove_AppMemoryUsageLimitChanging>;
[[nodiscard]] static AppMemoryUsageLimitChanging_revoker AppMemoryUsageLimitChanging(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::System::AppMemoryUsageLimitChangingEventArgs> const& handler);
static auto AppMemoryUsageLimitChanging(winrt::event_token const& token);
static auto GetAppMemoryReport();
static auto GetProcessMemoryReport();
static auto TrySetAppMemoryUsageLimit(uint64_t value);
[[nodiscard]] static auto ExpectedAppMemoryUsageLimit();
};
struct ProcessLauncher
{
ProcessLauncher() = delete;
static auto RunToCompletionAsync(param::hstring const& fileName, param::hstring const& args);
static auto RunToCompletionAsync(param::hstring const& fileName, param::hstring const& args, winrt::Windows::System::ProcessLauncherOptions const& options);
};
struct __declspec(empty_bases) ProcessLauncherOptions : winrt::Windows::System::IProcessLauncherOptions
{
ProcessLauncherOptions(std::nullptr_t) noexcept {}
ProcessLauncherOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IProcessLauncherOptions(ptr, take_ownership_from_abi) {}
ProcessLauncherOptions();
ProcessLauncherOptions(ProcessLauncherOptions const&) noexcept = default;
ProcessLauncherOptions(ProcessLauncherOptions&&) noexcept = default;
ProcessLauncherOptions& operator=(ProcessLauncherOptions const&) & noexcept = default;
ProcessLauncherOptions& operator=(ProcessLauncherOptions&&) & noexcept = default;
};
struct __declspec(empty_bases) ProcessLauncherResult : winrt::Windows::System::IProcessLauncherResult
{
ProcessLauncherResult(std::nullptr_t) noexcept {}
ProcessLauncherResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IProcessLauncherResult(ptr, take_ownership_from_abi) {}
ProcessLauncherResult(ProcessLauncherResult const&) noexcept = default;
ProcessLauncherResult(ProcessLauncherResult&&) noexcept = default;
ProcessLauncherResult& operator=(ProcessLauncherResult const&) & noexcept = default;
ProcessLauncherResult& operator=(ProcessLauncherResult&&) & noexcept = default;
};
struct __declspec(empty_bases) ProcessMemoryReport : winrt::Windows::System::IProcessMemoryReport
{
ProcessMemoryReport(std::nullptr_t) noexcept {}
ProcessMemoryReport(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IProcessMemoryReport(ptr, take_ownership_from_abi) {}
ProcessMemoryReport(ProcessMemoryReport const&) noexcept = default;
ProcessMemoryReport(ProcessMemoryReport&&) noexcept = default;
ProcessMemoryReport& operator=(ProcessMemoryReport const&) & noexcept = default;
ProcessMemoryReport& operator=(ProcessMemoryReport&&) & noexcept = default;
};
struct __declspec(empty_bases) ProtocolForResultsOperation : winrt::Windows::System::IProtocolForResultsOperation
{
ProtocolForResultsOperation(std::nullptr_t) noexcept {}
ProtocolForResultsOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IProtocolForResultsOperation(ptr, take_ownership_from_abi) {}
ProtocolForResultsOperation(ProtocolForResultsOperation const&) noexcept = default;
ProtocolForResultsOperation(ProtocolForResultsOperation&&) noexcept = default;
ProtocolForResultsOperation& operator=(ProtocolForResultsOperation const&) & noexcept = default;
ProtocolForResultsOperation& operator=(ProtocolForResultsOperation&&) & noexcept = default;
};
struct RemoteLauncher
{
RemoteLauncher() = delete;
static auto LaunchUriAsync(winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest const& remoteSystemConnectionRequest, winrt::Windows::Foundation::Uri const& uri);
static auto LaunchUriAsync(winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest const& remoteSystemConnectionRequest, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::RemoteLauncherOptions const& options);
static auto LaunchUriAsync(winrt::Windows::System::RemoteSystems::RemoteSystemConnectionRequest const& remoteSystemConnectionRequest, winrt::Windows::Foundation::Uri const& uri, winrt::Windows::System::RemoteLauncherOptions const& options, winrt::Windows::Foundation::Collections::ValueSet const& inputData);
};
struct __declspec(empty_bases) RemoteLauncherOptions : winrt::Windows::System::IRemoteLauncherOptions
{
RemoteLauncherOptions(std::nullptr_t) noexcept {}
RemoteLauncherOptions(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IRemoteLauncherOptions(ptr, take_ownership_from_abi) {}
RemoteLauncherOptions();
RemoteLauncherOptions(RemoteLauncherOptions const&) noexcept = default;
RemoteLauncherOptions(RemoteLauncherOptions&&) noexcept = default;
RemoteLauncherOptions& operator=(RemoteLauncherOptions const&) & noexcept = default;
RemoteLauncherOptions& operator=(RemoteLauncherOptions&&) & noexcept = default;
};
struct ShutdownManager
{
ShutdownManager() = delete;
static auto BeginShutdown(winrt::Windows::System::ShutdownKind const& shutdownKind, winrt::Windows::Foundation::TimeSpan const& timeout);
static auto CancelShutdown();
static auto IsPowerStateSupported(winrt::Windows::System::PowerState const& powerState);
static auto EnterPowerState(winrt::Windows::System::PowerState const& powerState);
static auto EnterPowerState(winrt::Windows::System::PowerState const& powerState, winrt::Windows::Foundation::TimeSpan const& wakeUpAfter);
};
struct TimeZoneSettings
{
TimeZoneSettings() = delete;
[[nodiscard]] static auto CurrentTimeZoneDisplayName();
[[nodiscard]] static auto SupportedTimeZoneDisplayNames();
[[nodiscard]] static auto CanChangeTimeZone();
static auto ChangeTimeZoneByDisplayName(param::hstring const& timeZoneDisplayName);
static auto AutoUpdateTimeZoneAsync(winrt::Windows::Foundation::TimeSpan const& timeout);
};
struct __declspec(empty_bases) User : winrt::Windows::System::IUser
{
User(std::nullptr_t) noexcept {}
User(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUser(ptr, take_ownership_from_abi) {}
User(User const&) noexcept = default;
User(User&&) noexcept = default;
User& operator=(User const&) & noexcept = default;
User& operator=(User&&) & noexcept = default;
static auto CreateWatcher();
static auto FindAllAsync();
static auto FindAllAsync(winrt::Windows::System::UserType const& type);
static auto FindAllAsync(winrt::Windows::System::UserType const& type, winrt::Windows::System::UserAuthenticationStatus const& status);
static auto GetFromId(param::hstring const& nonRoamableId);
};
struct __declspec(empty_bases) UserAuthenticationStatusChangeDeferral : winrt::Windows::System::IUserAuthenticationStatusChangeDeferral
{
UserAuthenticationStatusChangeDeferral(std::nullptr_t) noexcept {}
UserAuthenticationStatusChangeDeferral(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserAuthenticationStatusChangeDeferral(ptr, take_ownership_from_abi) {}
UserAuthenticationStatusChangeDeferral(UserAuthenticationStatusChangeDeferral const&) noexcept = default;
UserAuthenticationStatusChangeDeferral(UserAuthenticationStatusChangeDeferral&&) noexcept = default;
UserAuthenticationStatusChangeDeferral& operator=(UserAuthenticationStatusChangeDeferral const&) & noexcept = default;
UserAuthenticationStatusChangeDeferral& operator=(UserAuthenticationStatusChangeDeferral&&) & noexcept = default;
};
struct __declspec(empty_bases) UserAuthenticationStatusChangingEventArgs : winrt::Windows::System::IUserAuthenticationStatusChangingEventArgs
{
UserAuthenticationStatusChangingEventArgs(std::nullptr_t) noexcept {}
UserAuthenticationStatusChangingEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserAuthenticationStatusChangingEventArgs(ptr, take_ownership_from_abi) {}
UserAuthenticationStatusChangingEventArgs(UserAuthenticationStatusChangingEventArgs const&) noexcept = default;
UserAuthenticationStatusChangingEventArgs(UserAuthenticationStatusChangingEventArgs&&) noexcept = default;
UserAuthenticationStatusChangingEventArgs& operator=(UserAuthenticationStatusChangingEventArgs const&) & noexcept = default;
UserAuthenticationStatusChangingEventArgs& operator=(UserAuthenticationStatusChangingEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) UserChangedEventArgs : winrt::Windows::System::IUserChangedEventArgs,
impl::require<UserChangedEventArgs, winrt::Windows::System::IUserChangedEventArgs2>
{
UserChangedEventArgs(std::nullptr_t) noexcept {}
UserChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserChangedEventArgs(ptr, take_ownership_from_abi) {}
UserChangedEventArgs(UserChangedEventArgs const&) noexcept = default;
UserChangedEventArgs(UserChangedEventArgs&&) noexcept = default;
UserChangedEventArgs& operator=(UserChangedEventArgs const&) & noexcept = default;
UserChangedEventArgs& operator=(UserChangedEventArgs&&) & noexcept = default;
};
struct UserDeviceAssociation
{
UserDeviceAssociation() = delete;
static auto FindUserFromDeviceId(param::hstring const& deviceId);
static auto UserDeviceAssociationChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::System::UserDeviceAssociationChangedEventArgs> const& handler);
using UserDeviceAssociationChanged_revoker = impl::factory_event_revoker<winrt::Windows::System::IUserDeviceAssociationStatics, &impl::abi_t<winrt::Windows::System::IUserDeviceAssociationStatics>::remove_UserDeviceAssociationChanged>;
[[nodiscard]] static UserDeviceAssociationChanged_revoker UserDeviceAssociationChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::System::UserDeviceAssociationChangedEventArgs> const& handler);
static auto UserDeviceAssociationChanged(winrt::event_token const& token);
};
struct __declspec(empty_bases) UserDeviceAssociationChangedEventArgs : winrt::Windows::System::IUserDeviceAssociationChangedEventArgs
{
UserDeviceAssociationChangedEventArgs(std::nullptr_t) noexcept {}
UserDeviceAssociationChangedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserDeviceAssociationChangedEventArgs(ptr, take_ownership_from_abi) {}
UserDeviceAssociationChangedEventArgs(UserDeviceAssociationChangedEventArgs const&) noexcept = default;
UserDeviceAssociationChangedEventArgs(UserDeviceAssociationChangedEventArgs&&) noexcept = default;
UserDeviceAssociationChangedEventArgs& operator=(UserDeviceAssociationChangedEventArgs const&) & noexcept = default;
UserDeviceAssociationChangedEventArgs& operator=(UserDeviceAssociationChangedEventArgs&&) & noexcept = default;
};
struct __declspec(empty_bases) UserPicker : winrt::Windows::System::IUserPicker
{
UserPicker(std::nullptr_t) noexcept {}
UserPicker(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserPicker(ptr, take_ownership_from_abi) {}
UserPicker();
UserPicker(UserPicker const&) noexcept = default;
UserPicker(UserPicker&&) noexcept = default;
UserPicker& operator=(UserPicker const&) & noexcept = default;
UserPicker& operator=(UserPicker&&) & noexcept = default;
static auto IsSupported();
};
struct __declspec(empty_bases) UserWatcher : winrt::Windows::System::IUserWatcher
{
UserWatcher(std::nullptr_t) noexcept {}
UserWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::System::IUserWatcher(ptr, take_ownership_from_abi) {}
UserWatcher(UserWatcher const&) noexcept = default;
UserWatcher(UserWatcher&&) noexcept = default;
UserWatcher& operator=(UserWatcher const&) & noexcept = default;
UserWatcher& operator=(UserWatcher&&) & noexcept = default;
};
}
#endif