# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2

import enum
import sys
import types
import typing
import uuid

import winsdk._winrt as _winrt

try:
    import winsdk.windows.applicationmodel
except Exception:
    pass

try:
    import winsdk.windows.foundation
except Exception:
    pass

try:
    import winsdk.windows.foundation.collections
except Exception:
    pass

try:
    import winsdk.windows.storage
except Exception:
    pass

try:
    import winsdk.windows.storage.search
except Exception:
    pass

try:
    import winsdk.windows.storage.streams
except Exception:
    pass

try:
    import winsdk.windows.system.diagnostics
except Exception:
    pass

try:
    import winsdk.windows.system.remotesystems
except Exception:
    pass

try:
    import winsdk.windows.ui.popups
except Exception:
    pass

try:
    import winsdk.windows.ui.viewmanagement
except Exception:
    pass

class AppDiagnosticInfoWatcherStatus(enum.IntEnum):
    CREATED = 0
    STARTED = 1
    ENUMERATION_COMPLETED = 2
    STOPPING = 3
    STOPPED = 4
    ABORTED = 5

class AppMemoryUsageLevel(enum.IntEnum):
    LOW = 0
    MEDIUM = 1
    HIGH = 2
    OVER_LIMIT = 3

class AppResourceGroupEnergyQuotaState(enum.IntEnum):
    UNKNOWN = 0
    OVER = 1
    UNDER = 2

class AppResourceGroupExecutionState(enum.IntEnum):
    UNKNOWN = 0
    RUNNING = 1
    SUSPENDING = 2
    SUSPENDED = 3
    NOT_RUNNING = 4

class AppResourceGroupInfoWatcherStatus(enum.IntEnum):
    CREATED = 0
    STARTED = 1
    ENUMERATION_COMPLETED = 2
    STOPPING = 3
    STOPPED = 4
    ABORTED = 5

class AutoUpdateTimeZoneStatus(enum.IntEnum):
    ATTEMPTED = 0
    TIMED_OUT = 1
    FAILED = 2

class DiagnosticAccessStatus(enum.IntEnum):
    UNSPECIFIED = 0
    DENIED = 1
    LIMITED = 2
    ALLOWED = 3

class DispatcherQueuePriority(enum.IntEnum):
    LOW = -10
    NORMAL = 0
    HIGH = 10

class LaunchFileStatus(enum.IntEnum):
    SUCCESS = 0
    APP_UNAVAILABLE = 1
    DENIED_BY_POLICY = 2
    FILE_TYPE_NOT_SUPPORTED = 3
    UNKNOWN = 4

class LaunchQuerySupportStatus(enum.IntEnum):
    AVAILABLE = 0
    APP_NOT_INSTALLED = 1
    APP_UNAVAILABLE = 2
    NOT_SUPPORTED = 3
    UNKNOWN = 4

class LaunchQuerySupportType(enum.IntEnum):
    URI = 0
    URI_FOR_RESULTS = 1

class LaunchUriStatus(enum.IntEnum):
    SUCCESS = 0
    APP_UNAVAILABLE = 1
    PROTOCOL_UNAVAILABLE = 2
    UNKNOWN = 3

class PowerState(enum.IntEnum):
    CONNECTED_STANDBY = 0
    SLEEP_S3 = 1

class ProcessorArchitecture(enum.IntEnum):
    X86 = 0
    ARM = 5
    X64 = 9
    NEUTRAL = 11
    ARM64 = 12
    X86_ON_ARM64 = 14
    UNKNOWN = 65535

class RemoteLaunchUriStatus(enum.IntEnum):
    UNKNOWN = 0
    SUCCESS = 1
    APP_UNAVAILABLE = 2
    PROTOCOL_UNAVAILABLE = 3
    REMOTE_SYSTEM_UNAVAILABLE = 4
    VALUE_SET_TOO_LARGE = 5
    DENIED_BY_LOCAL_SYSTEM = 6
    DENIED_BY_REMOTE_SYSTEM = 7

class ShutdownKind(enum.IntEnum):
    SHUTDOWN = 0
    RESTART = 1

class UserAgeConsentGroup(enum.IntEnum):
    CHILD = 0
    MINOR = 1
    ADULT = 2

class UserAgeConsentResult(enum.IntEnum):
    NOT_ENFORCED = 0
    INCLUDED = 1
    NOT_INCLUDED = 2
    UNKNOWN = 3
    AMBIGUOUS = 4

class UserAuthenticationStatus(enum.IntEnum):
    UNAUTHENTICATED = 0
    LOCALLY_AUTHENTICATED = 1
    REMOTELY_AUTHENTICATED = 2

class UserPictureSize(enum.IntEnum):
    SIZE64X64 = 0
    SIZE208X208 = 1
    SIZE424X424 = 2
    SIZE1080X1080 = 3

class UserType(enum.IntEnum):
    LOCAL_USER = 0
    REMOTE_USER = 1
    LOCAL_GUEST = 2
    REMOTE_GUEST = 3
    SYSTEM_MANAGED = 4

class UserWatcherStatus(enum.IntEnum):
    CREATED = 0
    STARTED = 1
    ENUMERATION_COMPLETED = 2
    STOPPING = 3
    STOPPED = 4
    ABORTED = 5

class UserWatcherUpdateKind(enum.IntEnum):
    PROPERTIES = 0
    PICTURE = 1

class VirtualKey(enum.IntEnum):
    NONE = 0
    LEFT_BUTTON = 1
    RIGHT_BUTTON = 2
    CANCEL = 3
    MIDDLE_BUTTON = 4
    X_BUTTON1 = 5
    X_BUTTON2 = 6
    BACK = 8
    TAB = 9
    CLEAR = 12
    ENTER = 13
    SHIFT = 16
    CONTROL = 17
    MENU = 18
    PAUSE = 19
    CAPITAL_LOCK = 20
    KANA = 21
    HANGUL = 21
    IME_ON = 22
    JUNJA = 23
    FINAL = 24
    HANJA = 25
    KANJI = 25
    IME_OFF = 26
    ESCAPE = 27
    CONVERT = 28
    NON_CONVERT = 29
    ACCEPT = 30
    MODE_CHANGE = 31
    SPACE = 32
    PAGE_UP = 33
    PAGE_DOWN = 34
    END = 35
    HOME = 36
    LEFT = 37
    UP = 38
    RIGHT = 39
    DOWN = 40
    SELECT = 41
    PRINT = 42
    EXECUTE = 43
    SNAPSHOT = 44
    INSERT = 45
    DELETE = 46
    HELP = 47
    NUMBER0 = 48
    NUMBER1 = 49
    NUMBER2 = 50
    NUMBER3 = 51
    NUMBER4 = 52
    NUMBER5 = 53
    NUMBER6 = 54
    NUMBER7 = 55
    NUMBER8 = 56
    NUMBER9 = 57
    A = 65
    B = 66
    C = 67
    D = 68
    E = 69
    F = 70
    G = 71
    H = 72
    I = 73
    J = 74
    K = 75
    L = 76
    M = 77
    N = 78
    O = 79
    P = 80
    Q = 81
    R = 82
    S = 83
    T = 84
    U = 85
    V = 86
    W = 87
    X = 88
    Y = 89
    Z = 90
    LEFT_WINDOWS = 91
    RIGHT_WINDOWS = 92
    APPLICATION = 93
    SLEEP = 95
    NUMBER_PAD0 = 96
    NUMBER_PAD1 = 97
    NUMBER_PAD2 = 98
    NUMBER_PAD3 = 99
    NUMBER_PAD4 = 100
    NUMBER_PAD5 = 101
    NUMBER_PAD6 = 102
    NUMBER_PAD7 = 103
    NUMBER_PAD8 = 104
    NUMBER_PAD9 = 105
    MULTIPLY = 106
    ADD = 107
    SEPARATOR = 108
    SUBTRACT = 109
    DECIMAL = 110
    DIVIDE = 111
    F1 = 112
    F2 = 113
    F3 = 114
    F4 = 115
    F5 = 116
    F6 = 117
    F7 = 118
    F8 = 119
    F9 = 120
    F10 = 121
    F11 = 122
    F12 = 123
    F13 = 124
    F14 = 125
    F15 = 126
    F16 = 127
    F17 = 128
    F18 = 129
    F19 = 130
    F20 = 131
    F21 = 132
    F22 = 133
    F23 = 134
    F24 = 135
    NAVIGATION_VIEW = 136
    NAVIGATION_MENU = 137
    NAVIGATION_UP = 138
    NAVIGATION_DOWN = 139
    NAVIGATION_LEFT = 140
    NAVIGATION_RIGHT = 141
    NAVIGATION_ACCEPT = 142
    NAVIGATION_CANCEL = 143
    NUMBER_KEY_LOCK = 144
    SCROLL = 145
    LEFT_SHIFT = 160
    RIGHT_SHIFT = 161
    LEFT_CONTROL = 162
    RIGHT_CONTROL = 163
    LEFT_MENU = 164
    RIGHT_MENU = 165
    GO_BACK = 166
    GO_FORWARD = 167
    REFRESH = 168
    STOP = 169
    SEARCH = 170
    FAVORITES = 171
    GO_HOME = 172
    GAMEPAD_A = 195
    GAMEPAD_B = 196
    GAMEPAD_X = 197
    GAMEPAD_Y = 198
    GAMEPAD_RIGHT_SHOULDER = 199
    GAMEPAD_LEFT_SHOULDER = 200
    GAMEPAD_LEFT_TRIGGER = 201
    GAMEPAD_RIGHT_TRIGGER = 202
    GAMEPAD_D_PAD_UP = 203
    GAMEPAD_D_PAD_DOWN = 204
    GAMEPAD_D_PAD_LEFT = 205
    GAMEPAD_D_PAD_RIGHT = 206
    GAMEPAD_MENU = 207
    GAMEPAD_VIEW = 208
    GAMEPAD_LEFT_THUMBSTICK_BUTTON = 209
    GAMEPAD_RIGHT_THUMBSTICK_BUTTON = 210
    GAMEPAD_LEFT_THUMBSTICK_UP = 211
    GAMEPAD_LEFT_THUMBSTICK_DOWN = 212
    GAMEPAD_LEFT_THUMBSTICK_RIGHT = 213
    GAMEPAD_LEFT_THUMBSTICK_LEFT = 214
    GAMEPAD_RIGHT_THUMBSTICK_UP = 215
    GAMEPAD_RIGHT_THUMBSTICK_DOWN = 216
    GAMEPAD_RIGHT_THUMBSTICK_RIGHT = 217
    GAMEPAD_RIGHT_THUMBSTICK_LEFT = 218

class VirtualKeyModifiers(enum.IntFlag):
    NONE = 0
    CONTROL = 0x1
    MENU = 0x2
    SHIFT = 0x4
    WINDOWS = 0x8

class AppActivationResult(_winrt.Object):
    app_resource_group_info: AppResourceGroupInfo
    extended_error: winsdk.windows.foundation.HResult
    @staticmethod
    def _from(obj: _winrt.Object) -> AppActivationResult: ...

class AppDiagnosticInfo(_winrt.Object):
    app_info: winsdk.windows.applicationmodel.AppInfo
    @staticmethod
    def _from(obj: _winrt.Object) -> AppDiagnosticInfo: ...
    @typing.overload
    def create_resource_group_watcher(self) -> AppResourceGroupInfoWatcher: ...
    @typing.overload
    @staticmethod
    def create_watcher() -> AppDiagnosticInfoWatcher: ...
    @typing.overload
    def get_resource_groups(self) -> winsdk.windows.foundation.collections.IVector[AppResourceGroupInfo]: ...
    @typing.overload
    def launch_async(self) -> winsdk.windows.foundation.IAsyncOperation[AppActivationResult]: ...
    @typing.overload
    @staticmethod
    def request_access_async() -> winsdk.windows.foundation.IAsyncOperation[DiagnosticAccessStatus]: ...
    @typing.overload
    @staticmethod
    def request_info_async() -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVector[AppDiagnosticInfo]]: ...
    @typing.overload
    @staticmethod
    def request_info_for_app_async() -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVector[AppDiagnosticInfo]]: ...
    @typing.overload
    @staticmethod
    def request_info_for_app_async(app_user_model_id: str) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVector[AppDiagnosticInfo]]: ...
    @typing.overload
    @staticmethod
    def request_info_for_package_async(package_family_name: str) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVector[AppDiagnosticInfo]]: ...

class AppDiagnosticInfoWatcher(_winrt.Object):
    status: AppDiagnosticInfoWatcherStatus
    @staticmethod
    def _from(obj: _winrt.Object) -> AppDiagnosticInfoWatcher: ...
    @typing.overload
    def start(self) -> None: ...
    @typing.overload
    def stop(self) -> None: ...
    @typing.overload
    def add_added(self, handler: winsdk.windows.foundation.TypedEventHandler[AppDiagnosticInfoWatcher, AppDiagnosticInfoWatcherEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_added(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_enumeration_completed(self, handler: winsdk.windows.foundation.TypedEventHandler[AppDiagnosticInfoWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_enumeration_completed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_removed(self, handler: winsdk.windows.foundation.TypedEventHandler[AppDiagnosticInfoWatcher, AppDiagnosticInfoWatcherEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_removed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_stopped(self, handler: winsdk.windows.foundation.TypedEventHandler[AppDiagnosticInfoWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_stopped(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class AppDiagnosticInfoWatcherEventArgs(_winrt.Object):
    app_diagnostic_info: AppDiagnosticInfo
    @staticmethod
    def _from(obj: _winrt.Object) -> AppDiagnosticInfoWatcherEventArgs: ...

class AppExecutionStateChangeResult(_winrt.Object):
    extended_error: winsdk.windows.foundation.HResult
    @staticmethod
    def _from(obj: _winrt.Object) -> AppExecutionStateChangeResult: ...

class AppMemoryReport(_winrt.Object):
    peak_private_commit_usage: _winrt.UInt64
    private_commit_usage: _winrt.UInt64
    total_commit_limit: _winrt.UInt64
    total_commit_usage: _winrt.UInt64
    expected_total_commit_limit: _winrt.UInt64
    @staticmethod
    def _from(obj: _winrt.Object) -> AppMemoryReport: ...

class AppMemoryUsageLimitChangingEventArgs(_winrt.Object):
    new_limit: _winrt.UInt64
    old_limit: _winrt.UInt64
    @staticmethod
    def _from(obj: _winrt.Object) -> AppMemoryUsageLimitChangingEventArgs: ...

class AppResourceGroupBackgroundTaskReport(_winrt.Object):
    entry_point: str
    name: str
    task_id: uuid.UUID
    trigger: str
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupBackgroundTaskReport: ...

class AppResourceGroupInfo(_winrt.Object):
    instance_id: uuid.UUID
    is_shared: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupInfo: ...
    @typing.overload
    def get_background_task_reports(self) -> winsdk.windows.foundation.collections.IVector[AppResourceGroupBackgroundTaskReport]: ...
    @typing.overload
    def get_memory_report(self) -> AppResourceGroupMemoryReport: ...
    @typing.overload
    def get_process_diagnostic_infos(self) -> winsdk.windows.foundation.collections.IVector[winsdk.windows.system.diagnostics.ProcessDiagnosticInfo]: ...
    @typing.overload
    def get_state_report(self) -> AppResourceGroupStateReport: ...
    @typing.overload
    def start_resume_async(self) -> winsdk.windows.foundation.IAsyncOperation[AppExecutionStateChangeResult]: ...
    @typing.overload
    def start_suspend_async(self) -> winsdk.windows.foundation.IAsyncOperation[AppExecutionStateChangeResult]: ...
    @typing.overload
    def start_terminate_async(self) -> winsdk.windows.foundation.IAsyncOperation[AppExecutionStateChangeResult]: ...

class AppResourceGroupInfoWatcher(_winrt.Object):
    status: AppResourceGroupInfoWatcherStatus
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupInfoWatcher: ...
    @typing.overload
    def start(self) -> None: ...
    @typing.overload
    def stop(self) -> None: ...
    @typing.overload
    def add_added(self, handler: winsdk.windows.foundation.TypedEventHandler[AppResourceGroupInfoWatcher, AppResourceGroupInfoWatcherEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_added(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_enumeration_completed(self, handler: winsdk.windows.foundation.TypedEventHandler[AppResourceGroupInfoWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_enumeration_completed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_execution_state_changed(self, handler: winsdk.windows.foundation.TypedEventHandler[AppResourceGroupInfoWatcher, AppResourceGroupInfoWatcherExecutionStateChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_execution_state_changed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_removed(self, handler: winsdk.windows.foundation.TypedEventHandler[AppResourceGroupInfoWatcher, AppResourceGroupInfoWatcherEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_removed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_stopped(self, handler: winsdk.windows.foundation.TypedEventHandler[AppResourceGroupInfoWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_stopped(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class AppResourceGroupInfoWatcherEventArgs(_winrt.Object):
    app_diagnostic_infos: winsdk.windows.foundation.collections.IVectorView[AppDiagnosticInfo]
    app_resource_group_info: AppResourceGroupInfo
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupInfoWatcherEventArgs: ...

class AppResourceGroupInfoWatcherExecutionStateChangedEventArgs(_winrt.Object):
    app_diagnostic_infos: winsdk.windows.foundation.collections.IVectorView[AppDiagnosticInfo]
    app_resource_group_info: AppResourceGroupInfo
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupInfoWatcherExecutionStateChangedEventArgs: ...

class AppResourceGroupMemoryReport(_winrt.Object):
    commit_usage_level: AppMemoryUsageLevel
    commit_usage_limit: _winrt.UInt64
    private_commit_usage: _winrt.UInt64
    total_commit_usage: _winrt.UInt64
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupMemoryReport: ...

class AppResourceGroupStateReport(_winrt.Object):
    energy_quota_state: AppResourceGroupEnergyQuotaState
    execution_state: AppResourceGroupExecutionState
    @staticmethod
    def _from(obj: _winrt.Object) -> AppResourceGroupStateReport: ...

class AppUriHandlerHost(_winrt.Object):
    name: str
    is_enabled: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> AppUriHandlerHost: ...
    @typing.overload
    def __init__(self, name: str) -> None: ...
    @typing.overload
    def __init__(self) -> None: ...

class AppUriHandlerRegistration(_winrt.Object):
    name: str
    user: User
    package_family_name: str
    @staticmethod
    def _from(obj: _winrt.Object) -> AppUriHandlerRegistration: ...
    @typing.overload
    def get_all_hosts(self) -> winsdk.windows.foundation.collections.IVector[AppUriHandlerHost]: ...
    @typing.overload
    def get_app_added_hosts_async(self) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVector[AppUriHandlerHost]]: ...
    @typing.overload
    def set_app_added_hosts_async(self, hosts: typing.Iterable[AppUriHandlerHost]) -> winsdk.windows.foundation.IAsyncAction: ...
    @typing.overload
    def update_hosts(self, hosts: typing.Iterable[AppUriHandlerHost]) -> None: ...

class AppUriHandlerRegistrationManager(_winrt.Object):
    user: User
    package_family_name: str
    @staticmethod
    def _from(obj: _winrt.Object) -> AppUriHandlerRegistrationManager: ...
    @typing.overload
    @staticmethod
    def get_default() -> AppUriHandlerRegistrationManager: ...
    @typing.overload
    @staticmethod
    def get_for_package(package_family_name: str) -> AppUriHandlerRegistrationManager: ...
    @typing.overload
    @staticmethod
    def get_for_package_for_user(package_family_name: str, user: User) -> AppUriHandlerRegistrationManager: ...
    @typing.overload
    @staticmethod
    def get_for_user(user: User) -> AppUriHandlerRegistrationManager: ...
    @typing.overload
    def try_get_registration(self, name: str) -> AppUriHandlerRegistration: ...

class DateTimeSettings(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> DateTimeSettings: ...
    @typing.overload
    @staticmethod
    def set_system_date_time(utc_date_time: winsdk.windows.foundation.DateTime) -> None: ...

class DispatcherQueue(_winrt.Object):
    has_thread_access: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> DispatcherQueue: ...
    @typing.overload
    def create_timer(self) -> DispatcherQueueTimer: ...
    @typing.overload
    @staticmethod
    def get_for_current_thread() -> DispatcherQueue: ...
    @typing.overload
    def try_enqueue(self, callback: DispatcherQueueHandler) -> _winrt.Boolean: ...
    @typing.overload
    def try_enqueue(self, priority: DispatcherQueuePriority, callback: DispatcherQueueHandler) -> _winrt.Boolean: ...
    @typing.overload
    def add_shutdown_completed(self, handler: winsdk.windows.foundation.TypedEventHandler[DispatcherQueue, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_shutdown_completed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_shutdown_starting(self, handler: winsdk.windows.foundation.TypedEventHandler[DispatcherQueue, DispatcherQueueShutdownStartingEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_shutdown_starting(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class DispatcherQueueController(_winrt.Object):
    dispatcher_queue: DispatcherQueue
    @staticmethod
    def _from(obj: _winrt.Object) -> DispatcherQueueController: ...
    @typing.overload
    @staticmethod
    def create_on_dedicated_thread() -> DispatcherQueueController: ...
    @typing.overload
    def shutdown_queue_async(self) -> winsdk.windows.foundation.IAsyncAction: ...

class DispatcherQueueShutdownStartingEventArgs(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> DispatcherQueueShutdownStartingEventArgs: ...
    @typing.overload
    def get_deferral(self) -> winsdk.windows.foundation.Deferral: ...

class DispatcherQueueTimer(_winrt.Object):
    is_repeating: _winrt.Boolean
    interval: winsdk.windows.foundation.TimeSpan
    is_running: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> DispatcherQueueTimer: ...
    @typing.overload
    def start(self) -> None: ...
    @typing.overload
    def stop(self) -> None: ...
    @typing.overload
    def add_tick(self, handler: winsdk.windows.foundation.TypedEventHandler[DispatcherQueueTimer, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_tick(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class FolderLauncherOptions(ILauncherViewOptions, _winrt.Object):
    items_to_select: winsdk.windows.foundation.collections.IVector[winsdk.windows.storage.IStorageItem]
    desired_remaining_view: winsdk.windows.ui.viewmanagement.ViewSizePreference
    @staticmethod
    def _from(obj: _winrt.Object) -> FolderLauncherOptions: ...
    @typing.overload
    def __init__(self) -> None: ...

class KnownUserProperties(_winrt.Object):
    account_name: str
    display_name: str
    domain_name: str
    first_name: str
    guest_host: str
    last_name: str
    principal_name: str
    provider_name: str
    session_initiation_protocol_uri: str
    age_enforcement_region: str
    @staticmethod
    def _from(obj: _winrt.Object) -> KnownUserProperties: ...

class LaunchUriResult(_winrt.Object):
    result: winsdk.windows.foundation.collections.ValueSet
    status: LaunchUriStatus
    @staticmethod
    def _from(obj: _winrt.Object) -> LaunchUriResult: ...

class Launcher(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> Launcher: ...
    @typing.overload
    @staticmethod
    def find_app_uri_handlers_async(uri: winsdk.windows.foundation.Uri) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[winsdk.windows.applicationmodel.AppInfo]]: ...
    @typing.overload
    @staticmethod
    def find_file_handlers_async(extension: str) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[winsdk.windows.applicationmodel.AppInfo]]: ...
    @typing.overload
    @staticmethod
    def find_uri_scheme_handlers_async(scheme: str) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[winsdk.windows.applicationmodel.AppInfo]]: ...
    @typing.overload
    @staticmethod
    def find_uri_scheme_handlers_async(scheme: str, launch_query_support_type: LaunchQuerySupportType) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[winsdk.windows.applicationmodel.AppInfo]]: ...
    @typing.overload
    @staticmethod
    def launch_file_async(file: winsdk.windows.storage.IStorageFile) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_file_async(file: winsdk.windows.storage.IStorageFile, options: LauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_async(folder: winsdk.windows.storage.IStorageFolder) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_async(folder: winsdk.windows.storage.IStorageFolder, options: FolderLauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_path_async(path: str) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_path_async(path: str, options: FolderLauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_path_for_user_async(user: User, path: str) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_folder_path_for_user_async(user: User, path: str, options: FolderLauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(uri: winsdk.windows.foundation.Uri) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(uri: winsdk.windows.foundation.Uri, options: LauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(uri: winsdk.windows.foundation.Uri, options: LauncherOptions, input_data: winsdk.windows.foundation.collections.ValueSet) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_results_async(uri: winsdk.windows.foundation.Uri, options: LauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriResult]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_results_async(uri: winsdk.windows.foundation.Uri, options: LauncherOptions, input_data: winsdk.windows.foundation.collections.ValueSet) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriResult]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_results_for_user_async(user: User, uri: winsdk.windows.foundation.Uri, options: LauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriResult]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_results_for_user_async(user: User, uri: winsdk.windows.foundation.Uri, options: LauncherOptions, input_data: winsdk.windows.foundation.collections.ValueSet) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriResult]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_user_async(user: User, uri: winsdk.windows.foundation.Uri) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriStatus]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_user_async(user: User, uri: winsdk.windows.foundation.Uri, options: LauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriStatus]: ...
    @typing.overload
    @staticmethod
    def launch_uri_for_user_async(user: User, uri: winsdk.windows.foundation.Uri, options: LauncherOptions, input_data: winsdk.windows.foundation.collections.ValueSet) -> winsdk.windows.foundation.IAsyncOperation[LaunchUriStatus]: ...
    @typing.overload
    @staticmethod
    def query_app_uri_support_async(uri: winsdk.windows.foundation.Uri) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...
    @typing.overload
    @staticmethod
    def query_app_uri_support_async(uri: winsdk.windows.foundation.Uri, package_family_name: str) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...
    @typing.overload
    @staticmethod
    def query_file_support_async(file: winsdk.windows.storage.StorageFile) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...
    @typing.overload
    @staticmethod
    def query_file_support_async(file: winsdk.windows.storage.StorageFile, package_family_name: str) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...
    @typing.overload
    @staticmethod
    def query_uri_support_async(uri: winsdk.windows.foundation.Uri, launch_query_support_type: LaunchQuerySupportType) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...
    @typing.overload
    @staticmethod
    def query_uri_support_async(uri: winsdk.windows.foundation.Uri, launch_query_support_type: LaunchQuerySupportType, package_family_name: str) -> winsdk.windows.foundation.IAsyncOperation[LaunchQuerySupportStatus]: ...

class LauncherOptions(ILauncherViewOptions, _winrt.Object):
    treat_as_untrusted: _winrt.Boolean
    preferred_application_package_family_name: str
    preferred_application_display_name: str
    fallback_uri: winsdk.windows.foundation.Uri
    display_application_picker: _winrt.Boolean
    content_type: str
    u_i: LauncherUIOptions
    target_application_package_family_name: str
    neighboring_files_query: winsdk.windows.storage.search.StorageFileQueryResult
    ignore_app_uri_handlers: _winrt.Boolean
    limit_picker_to_current_app_and_app_uri_handlers: _winrt.Boolean
    desired_remaining_view: winsdk.windows.ui.viewmanagement.ViewSizePreference
    @staticmethod
    def _from(obj: _winrt.Object) -> LauncherOptions: ...
    @typing.overload
    def __init__(self) -> None: ...

class LauncherUIOptions(_winrt.Object):
    selection_rect: typing.Optional[winsdk.windows.foundation.Rect]
    preferred_placement: winsdk.windows.ui.popups.Placement
    invocation_point: typing.Optional[winsdk.windows.foundation.Point]
    @staticmethod
    def _from(obj: _winrt.Object) -> LauncherUIOptions: ...

class MemoryManager(_winrt.Object):
    app_memory_usage: _winrt.UInt64
    app_memory_usage_level: AppMemoryUsageLevel
    app_memory_usage_limit: _winrt.UInt64
    expected_app_memory_usage_limit: _winrt.UInt64
    @staticmethod
    def _from(obj: _winrt.Object) -> MemoryManager: ...
    @typing.overload
    @staticmethod
    def get_app_memory_report() -> AppMemoryReport: ...
    @typing.overload
    @staticmethod
    def get_process_memory_report() -> ProcessMemoryReport: ...
    @typing.overload
    @staticmethod
    def try_set_app_memory_usage_limit(value: _winrt.UInt64) -> _winrt.Boolean: ...
    @typing.overload
    @staticmethod
    def add_app_memory_usage_decreased(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_app_memory_usage_decreased(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_app_memory_usage_increased(handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_app_memory_usage_increased(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    @staticmethod
    def add_app_memory_usage_limit_changing(handler: winsdk.windows.foundation.EventHandler[AppMemoryUsageLimitChangingEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_app_memory_usage_limit_changing(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class ProcessLauncher(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> ProcessLauncher: ...
    @typing.overload
    @staticmethod
    def run_to_completion_async(file_name: str, args: str) -> winsdk.windows.foundation.IAsyncOperation[ProcessLauncherResult]: ...
    @typing.overload
    @staticmethod
    def run_to_completion_async(file_name: str, args: str, options: ProcessLauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[ProcessLauncherResult]: ...

class ProcessLauncherOptions(_winrt.Object):
    working_directory: str
    standard_output: winsdk.windows.storage.streams.IOutputStream
    standard_input: winsdk.windows.storage.streams.IInputStream
    standard_error: winsdk.windows.storage.streams.IOutputStream
    @staticmethod
    def _from(obj: _winrt.Object) -> ProcessLauncherOptions: ...
    @typing.overload
    def __init__(self) -> None: ...

class ProcessLauncherResult(_winrt.Object):
    exit_code: _winrt.UInt32
    @staticmethod
    def _from(obj: _winrt.Object) -> ProcessLauncherResult: ...

class ProcessMemoryReport(_winrt.Object):
    private_working_set_usage: _winrt.UInt64
    total_working_set_usage: _winrt.UInt64
    @staticmethod
    def _from(obj: _winrt.Object) -> ProcessMemoryReport: ...

class ProtocolForResultsOperation(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> ProtocolForResultsOperation: ...
    @typing.overload
    def report_completed(self, data: winsdk.windows.foundation.collections.ValueSet) -> None: ...

class RemoteLauncher(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> RemoteLauncher: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(remote_system_connection_request: winsdk.windows.system.remotesystems.RemoteSystemConnectionRequest, uri: winsdk.windows.foundation.Uri) -> winsdk.windows.foundation.IAsyncOperation[RemoteLaunchUriStatus]: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(remote_system_connection_request: winsdk.windows.system.remotesystems.RemoteSystemConnectionRequest, uri: winsdk.windows.foundation.Uri, options: RemoteLauncherOptions) -> winsdk.windows.foundation.IAsyncOperation[RemoteLaunchUriStatus]: ...
    @typing.overload
    @staticmethod
    def launch_uri_async(remote_system_connection_request: winsdk.windows.system.remotesystems.RemoteSystemConnectionRequest, uri: winsdk.windows.foundation.Uri, options: RemoteLauncherOptions, input_data: winsdk.windows.foundation.collections.ValueSet) -> winsdk.windows.foundation.IAsyncOperation[RemoteLaunchUriStatus]: ...

class RemoteLauncherOptions(_winrt.Object):
    fallback_uri: winsdk.windows.foundation.Uri
    preferred_app_ids: winsdk.windows.foundation.collections.IVector[str]
    @staticmethod
    def _from(obj: _winrt.Object) -> RemoteLauncherOptions: ...
    @typing.overload
    def __init__(self) -> None: ...

class ShutdownManager(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> ShutdownManager: ...
    @typing.overload
    @staticmethod
    def begin_shutdown(shutdown_kind: ShutdownKind, timeout: winsdk.windows.foundation.TimeSpan) -> None: ...
    @typing.overload
    @staticmethod
    def cancel_shutdown() -> None: ...
    @typing.overload
    @staticmethod
    def enter_power_state(power_state: PowerState) -> None: ...
    @typing.overload
    @staticmethod
    def enter_power_state(power_state: PowerState, wake_up_after: winsdk.windows.foundation.TimeSpan) -> None: ...
    @typing.overload
    @staticmethod
    def is_power_state_supported(power_state: PowerState) -> _winrt.Boolean: ...

class TimeZoneSettings(_winrt.Object):
    can_change_time_zone: _winrt.Boolean
    current_time_zone_display_name: str
    supported_time_zone_display_names: winsdk.windows.foundation.collections.IVectorView[str]
    @staticmethod
    def _from(obj: _winrt.Object) -> TimeZoneSettings: ...
    @typing.overload
    @staticmethod
    def auto_update_time_zone_async(timeout: winsdk.windows.foundation.TimeSpan) -> winsdk.windows.foundation.IAsyncOperation[AutoUpdateTimeZoneStatus]: ...
    @typing.overload
    @staticmethod
    def change_time_zone_by_display_name(time_zone_display_name: str) -> None: ...

class User(_winrt.Object):
    authentication_status: UserAuthenticationStatus
    non_roamable_id: str
    type: UserType
    @staticmethod
    def _from(obj: _winrt.Object) -> User: ...
    @typing.overload
    def check_user_age_consent_group_async(self, consent_group: UserAgeConsentGroup) -> winsdk.windows.foundation.IAsyncOperation[UserAgeConsentResult]: ...
    @typing.overload
    @staticmethod
    def create_watcher() -> UserWatcher: ...
    @typing.overload
    @staticmethod
    def find_all_async() -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[User]]: ...
    @typing.overload
    @staticmethod
    def find_all_async(type: UserType) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[User]]: ...
    @typing.overload
    @staticmethod
    def find_all_async(type: UserType, status: UserAuthenticationStatus) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IVectorView[User]]: ...
    @typing.overload
    @staticmethod
    def get_default() -> User: ...
    @typing.overload
    @staticmethod
    def get_from_id(non_roamable_id: str) -> User: ...
    @typing.overload
    def get_picture_async(self, desired_size: UserPictureSize) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.storage.streams.IRandomAccessStreamReference]: ...
    @typing.overload
    def get_properties_async(self, values: winsdk.windows.foundation.collections.IVectorView[str]) -> winsdk.windows.foundation.IAsyncOperation[winsdk.windows.foundation.collections.IPropertySet]: ...
    @typing.overload
    def get_property_async(self, value: str) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Object]: ...

class UserAuthenticationStatusChangeDeferral(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> UserAuthenticationStatusChangeDeferral: ...
    @typing.overload
    def complete(self) -> None: ...

class UserAuthenticationStatusChangingEventArgs(_winrt.Object):
    current_status: UserAuthenticationStatus
    new_status: UserAuthenticationStatus
    user: User
    @staticmethod
    def _from(obj: _winrt.Object) -> UserAuthenticationStatusChangingEventArgs: ...
    @typing.overload
    def get_deferral(self) -> UserAuthenticationStatusChangeDeferral: ...

class UserChangedEventArgs(_winrt.Object):
    user: User
    changed_property_kinds: winsdk.windows.foundation.collections.IVectorView[UserWatcherUpdateKind]
    @staticmethod
    def _from(obj: _winrt.Object) -> UserChangedEventArgs: ...

class UserDeviceAssociation(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> UserDeviceAssociation: ...
    @typing.overload
    @staticmethod
    def find_user_from_device_id(device_id: str) -> User: ...
    @typing.overload
    @staticmethod
    def add_user_device_association_changed(handler: winsdk.windows.foundation.EventHandler[UserDeviceAssociationChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    @staticmethod
    def remove_user_device_association_changed(token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class UserDeviceAssociationChangedEventArgs(_winrt.Object):
    device_id: str
    new_user: User
    old_user: User
    @staticmethod
    def _from(obj: _winrt.Object) -> UserDeviceAssociationChangedEventArgs: ...

class UserPicker(_winrt.Object):
    suggested_selected_user: User
    allow_guest_accounts: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> UserPicker: ...
    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    @staticmethod
    def is_supported() -> _winrt.Boolean: ...
    @typing.overload
    def pick_single_user_async(self) -> winsdk.windows.foundation.IAsyncOperation[User]: ...

class UserWatcher(_winrt.Object):
    status: UserWatcherStatus
    @staticmethod
    def _from(obj: _winrt.Object) -> UserWatcher: ...
    @typing.overload
    def start(self) -> None: ...
    @typing.overload
    def stop(self) -> None: ...
    @typing.overload
    def add_added(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, UserChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_added(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_authentication_status_changed(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, UserChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_authentication_status_changed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_authentication_status_changing(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, UserAuthenticationStatusChangingEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_authentication_status_changing(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_enumeration_completed(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_enumeration_completed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_removed(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, UserChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_removed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_stopped(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, _winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_stopped(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...
    @typing.overload
    def add_updated(self, handler: winsdk.windows.foundation.TypedEventHandler[UserWatcher, UserChangedEventArgs]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    @typing.overload
    def remove_updated(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

class ILauncherViewOptions(_winrt.Object):
    desired_remaining_view: winsdk.windows.ui.viewmanagement.ViewSizePreference
    @staticmethod
    def _from(obj: _winrt.Object) -> ILauncherViewOptions: ...

DispatcherQueueHandler = typing.Callable[[], None]

