nearby sdk refactor

PiperOrigin-RevId: 425434260
This commit is contained in:
hais
2022-02-02 11:56:39 -08:00
committed by hai007
parent 287f0d7174
commit f5fcd35ced
1879 changed files with 2485 additions and 2332 deletions
@@ -0,0 +1,354 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
#pragma once
#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 : winrt::Windows::Foundation::IUnknown
{
DispatcherQueueHandler(std::nullptr_t = nullptr) noexcept {}
DispatcherQueueHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {}
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) {}
};
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) {}
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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);
};
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) {}
};
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) {}
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) {}
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) {}
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) {}
};
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) {}
};
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();
};
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) {}
};
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();
};
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) {}
};
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();
};
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) {}
};
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) {}
};
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) {}
};
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();
};
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) {}
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);
static auto GetDefault();
};
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) {}
};
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) {}
};
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) {}
};
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) {}
};
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();
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) {}
};
}
#endif