1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
|
/*
* Copyright 2023 Rémi Bernon for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifdef __WIDL__
#pragma winrt ns_prefix
#endif
#ifndef DO_NO_IMPORTS
import "windows.foundation.idl";
import "windows.storage.idl";
import "windows.system.idl";
import "windows.applicationmodel.idl";
import "windows.applicationmodel.activation.idl";
import "windows.ui.core.idl";
#endif
namespace Windows.ApplicationModel.Core {
runtimeclass CoreApplicationView;
}
namespace Windows.ApplicationModel.Activation {
interface IActivatedEventArgs;
runtimeclass BackgroundActivatedEventArgs;
declare {
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs *>;
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationView *, Windows.ApplicationModel.Activation.IActivatedEventArgs *>;
}
}
namespace Windows.ApplicationModel {
runtimeclass AppDisplayInfo;
runtimeclass EnteredBackgroundEventArgs;
runtimeclass LeavingBackgroundEventArgs;
runtimeclass SuspendingEventArgs;
declare {
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.EnteredBackgroundEventArgs *>;
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.LeavingBackgroundEventArgs *>;
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.SuspendingEventArgs *>;
}
}
namespace Windows.Foundation {
interface IGetActivationFactory;
}
namespace Windows.UI.Core {
runtimeclass CoreDispatcher;
runtimeclass CoreWindow;
}
namespace Windows.ApplicationModel.Core {
typedef enum AppRestartFailureReason AppRestartFailureReason;
interface IAppListEntry;
interface ICoreApplication;
interface ICoreApplication2;
interface ICoreApplication3;
interface ICoreApplicationExit;
interface ICoreApplicationUnhandledError;
interface ICoreApplicationUseCount;
interface ICoreApplicationView;
interface ICoreApplicationView2;
interface ICoreApplicationView3;
interface ICoreApplicationView5;
interface ICoreApplicationView6;
interface ICoreApplicationViewTitleBar;
interface ICoreImmersiveApplication;
interface ICoreImmersiveApplication2;
interface ICoreImmersiveApplication3;
interface IFrameworkView;
interface IFrameworkViewSource;
interface IHostedViewClosingEventArgs;
interface IUnhandledError;
interface IUnhandledErrorDetectedEventArgs;
runtimeclass AppListEntry;
runtimeclass CoreApplication;
runtimeclass CoreApplicationView;
runtimeclass CoreApplicationViewTitleBar;
runtimeclass HostedViewClosingEventArgs;
runtimeclass UnhandledError;
runtimeclass UnhandledErrorDetectedEventArgs;
declare {
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.ApplicationModel.Core.AppRestartFailureReason>;
interface Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.CoreApplicationView *>;
interface Windows.Foundation.EventHandler<Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs *>;
interface Windows.Foundation.IAsyncOperation<Windows.ApplicationModel.Core.AppRestartFailureReason>;
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationView *, Windows.ApplicationModel.Core.HostedViewClosingEventArgs *>;
interface Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationViewTitleBar *, IInspectable *>;
}
[
contract(Windows.Foundation.UniversalApiContract, 5.0)
]
enum AppRestartFailureReason
{
RestartPending = 0,
NotInForeground = 1,
InvalidUser = 2,
Other = 3
};
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.AppListEntry),
uuid(ef00f07f-2108-490a-877a-8a9f17c25fad)
]
interface IAppListEntry : IInspectable
{
[propget] HRESULT DisplayInfo([out, retval] Windows.ApplicationModel.AppDisplayInfo **value);
HRESULT LaunchAsync([out, retval] Windows.Foundation.IAsyncOperation<boolean> **operation);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(0aacf7a4-5e1d-49df-8034-fb6a68bc5ed1)
]
interface ICoreApplication : IInspectable
{
[propget] HRESULT Id([out, retval] HSTRING *value);
[eventadd] HRESULT Suspending([in] Windows.Foundation.EventHandler<Windows.ApplicationModel.SuspendingEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT Suspending([in] EventRegistrationToken token);
[eventadd] HRESULT Resuming([in] Windows.Foundation.EventHandler<IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT Resuming([in] EventRegistrationToken token);
[propget] HRESULT Properties([out, retval] Windows.Foundation.Collections.IPropertySet **value);
HRESULT GetCurrentView([out, retval] Windows.ApplicationModel.Core.CoreApplicationView **value);
HRESULT Run([in] Windows.ApplicationModel.Core.IFrameworkViewSource *view_source);
HRESULT RunWithActivationFactories([in] Windows.Foundation.IGetActivationFactory *factory);
}
[
contract(Windows.Foundation.UniversalApiContract, 3.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(998681fb-1ab6-4b7f-be4a-9a0645224c04)
]
interface ICoreApplication2 : IInspectable
{
[eventadd] HRESULT BackgroundActivated([in] Windows.Foundation.EventHandler<Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT BackgroundActivated([in] EventRegistrationToken token);
[eventadd] HRESULT LeavingBackground([in] Windows.Foundation.EventHandler<Windows.ApplicationModel.LeavingBackgroundEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT LeavingBackground([in] EventRegistrationToken token);
[eventadd] HRESULT EnteredBackground([in] Windows.Foundation.EventHandler<Windows.ApplicationModel.EnteredBackgroundEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT EnteredBackground([in] EventRegistrationToken token);
HRESULT EnablePrelaunch([in] boolean value);
}
[
contract(Windows.Foundation.UniversalApiContract, 5.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(feec0d39-598b-4507-8a67-772632580a57)
]
interface ICoreApplication3 : IInspectable
{
HRESULT RequestRestartAsync([in] HSTRING launch_arguments, [out, retval] Windows.Foundation.IAsyncOperation<Windows.ApplicationModel.Core.AppRestartFailureReason> **operation);
HRESULT RequestRestartForUserAsync([in] Windows.System.User *user, [in] HSTRING launch_arguments, [out, retval] Windows.Foundation.IAsyncOperation<Windows.ApplicationModel.Core.AppRestartFailureReason> **operation);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(cf86461d-261e-4b72-9acd-44ed2ace6a29)
]
interface ICoreApplicationExit : IInspectable
{
HRESULT Exit();
[eventadd] HRESULT Exiting([in] Windows.Foundation.EventHandler<IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT Exiting([in] EventRegistrationToken token);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
uuid(f0e24ab0-dd09-42e1-b0bc-e0e131f78d7e)
]
interface ICoreApplicationUnhandledError : IInspectable
{
[eventadd] HRESULT UnhandledErrorDetected([in] Windows.Foundation.EventHandler<Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT UnhandledErrorDetected([in] EventRegistrationToken token);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(518dc408-c077-475b-809e-0bc0c57e4b74)
]
interface ICoreApplicationUseCount : IInspectable
{
HRESULT IncrementApplicationUseCount();
HRESULT DecrementApplicationUseCount();
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationView),
uuid(638bb2db-451d-4661-b099-414f34ffb9f1)
]
interface ICoreApplicationView : IInspectable
{
[propget] HRESULT CoreWindow([out, retval] Windows.UI.Core.CoreWindow **value);
[eventadd] HRESULT Activated([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationView *, Windows.ApplicationModel.Activation.IActivatedEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT Activated([in] EventRegistrationToken token);
[propget] HRESULT IsMain([out, retval] boolean *value);
[propget] HRESULT IsHosted([out, retval] boolean *value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationView),
uuid(68eb7adf-917f-48eb-9aeb-7de53e086ab1)
]
interface ICoreApplicationView2 : IInspectable
{
[propget] HRESULT Dispatcher([out, retval] Windows.UI.Core.CoreDispatcher **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationView),
uuid(07ebe1b3-a4cf-4550-ab70-b07e85330bc8)
]
interface ICoreApplicationView3 : IInspectable
{
[propget] HRESULT IsComponent([out, retval] boolean *value);
[propget] HRESULT TitleBar([out, retval] Windows.ApplicationModel.Core.CoreApplicationViewTitleBar **value);
[eventadd] HRESULT HostedViewClosing([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationView *, Windows.ApplicationModel.Core.HostedViewClosingEventArgs *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT HostedViewClosing([in] EventRegistrationToken token);
}
[
contract(Windows.Foundation.UniversalApiContract, 4.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationView),
uuid(2bc095a8-8ef0-446d-9e60-3a3e0428c671)
]
interface ICoreApplicationView5 : IInspectable
{
[propget] HRESULT Properties([out, retval] Windows.Foundation.Collections.IPropertySet **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 5.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationView),
uuid(c119d49a-0679-49ba-803f-b79c5cf34cca)
]
interface ICoreApplicationView6 : IInspectable
{
[propget] HRESULT DispatcherQueue([out, retval] Windows.System.DispatcherQueue **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplicationViewTitleBar),
uuid(006d35e3-e1f1-431b-9508-29b96926ac53)
]
interface ICoreApplicationViewTitleBar : IInspectable
{
[propput] HRESULT ExtendViewIntoTitleBar([in] boolean value);
[propget] HRESULT ExtendViewIntoTitleBar([out, retval] boolean *value);
[propget] HRESULT SystemOverlayLeftInset([out, retval] DOUBLE *value);
[propget] HRESULT SystemOverlayRightInset([out, retval] DOUBLE *value);
[propget] HRESULT Height([out, retval] DOUBLE *value);
[eventadd] HRESULT LayoutMetricsChanged([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationViewTitleBar *, IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT LayoutMetricsChanged([in] EventRegistrationToken token);
[propget] HRESULT IsVisible([out, retval] boolean *value);
[eventadd] HRESULT IsVisibleChanged([in] Windows.Foundation.TypedEventHandler<Windows.ApplicationModel.Core.CoreApplicationViewTitleBar *, IInspectable *> *handler, [out, retval] EventRegistrationToken *token);
[eventremove] HRESULT IsVisibleChanged([in] EventRegistrationToken token);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(1ada0e3e-e4a2-4123-b451-dc96bf800419)
]
interface ICoreImmersiveApplication : IInspectable
{
[propget] HRESULT Views([out, retval] Windows.Foundation.Collections.IVectorView<Windows.ApplicationModel.Core.CoreApplicationView *> **value);
[overload("CreateNewView"), default_overload]
HRESULT CreateNewView([in] HSTRING runtime_type, [in] HSTRING entry_point, [out, retval] Windows.ApplicationModel.Core.CoreApplicationView **view);
[propget] HRESULT MainView([out, retval] Windows.ApplicationModel.Core.CoreApplicationView **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(828e1e36-e9e3-4cfc-9b66-48b78ea9bb2c)
]
interface ICoreImmersiveApplication2 : IInspectable
{
[overload("CreateNewView")]
HRESULT CreateNewViewFromMainView([out, retval] Windows.ApplicationModel.Core.CoreApplicationView **view);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.CoreApplication),
uuid(34a05b2f-ee0d-41e5-8314-cf10c91bf0af)
]
interface ICoreImmersiveApplication3 : IInspectable
{
[overload("CreateNewView")]
HRESULT CreateNewViewWithViewSource([in] Windows.ApplicationModel.Core.IFrameworkViewSource *view_source, [out, retval] Windows.ApplicationModel.Core.CoreApplicationView **view);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
uuid(faab5cd0-8924-45ac-ad0f-a08fae5d0324)
]
interface IFrameworkView : IInspectable
{
HRESULT Initialize([in] Windows.ApplicationModel.Core.CoreApplicationView *application_view);
HRESULT SetWindow([in] Windows.UI.Core.CoreWindow *window);
HRESULT Load([in] HSTRING entry_point);
HRESULT Run();
HRESULT Uninitialize();
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
uuid(cd770614-65c4-426c-9494-34fc43554862)
]
interface IFrameworkViewSource : IInspectable
{
HRESULT CreateView([out, retval] Windows.ApplicationModel.Core.IFrameworkView **view);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.HostedViewClosingEventArgs),
uuid(d238943c-b24e-4790-acb5-3e4243c4ff87)
]
interface IHostedViewClosingEventArgs : IInspectable
{
HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral **result);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.UnhandledError),
uuid(9459b726-53b5-4686-9eaf-fa8162dc3980)
]
interface IUnhandledError : IInspectable
{
[propget] HRESULT Handled([out, retval] boolean *value);
HRESULT Propagate();
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
exclusiveto(Windows.ApplicationModel.Core.UnhandledErrorDetectedEventArgs),
uuid(679ab78b-b336-4822-ac40-0d750f0b7a2b)
]
interface IUnhandledErrorDetectedEventArgs : IInspectable
{
[propget] HRESULT UnhandledError([out, retval] Windows.ApplicationModel.Core.UnhandledError **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass AppListEntry
{
[default] interface Windows.ApplicationModel.Core.IAppListEntry;
[contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.ApplicationModel.Core.IAppListEntry2;
[contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.ApplicationModel.Core.IAppListEntry3;
[contract(Windows.Foundation.UniversalApiContract, 11.0)] interface Windows.ApplicationModel.Core.IAppListEntry4;
}
#ifndef _WINDOWS_APPLICATIONMODEL
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile),
static(Windows.ApplicationModel.Core.ICoreApplication, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreApplication2, Windows.Foundation.UniversalApiContract, 3.0),
static(Windows.ApplicationModel.Core.ICoreApplication3, Windows.Foundation.UniversalApiContract, 5.0),
static(Windows.ApplicationModel.Core.ICoreApplicationExit, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreApplicationUnhandledError, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreApplicationUseCount, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreImmersiveApplication, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreImmersiveApplication2, Windows.Foundation.UniversalApiContract, 1.0),
static(Windows.ApplicationModel.Core.ICoreImmersiveApplication3, Windows.Foundation.UniversalApiContract, 1.0)
]
runtimeclass CoreApplication
{
}
#endif
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(standard)
]
runtimeclass CoreApplicationView
{
[default] interface Windows.ApplicationModel.Core.ICoreApplicationView;
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.Core.ICoreApplicationView2;
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.ApplicationModel.Core.ICoreApplicationView3;
[contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.ApplicationModel.Core.ICoreApplicationView5;
[contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.ApplicationModel.Core.ICoreApplicationView6;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(standard)
]
runtimeclass CoreApplicationViewTitleBar
{
[default] interface Windows.ApplicationModel.Core.ICoreApplicationViewTitleBar;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile)
]
runtimeclass HostedViewClosingEventArgs
{
[default] interface Windows.ApplicationModel.Core.IHostedViewClosingEventArgs;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile)
]
runtimeclass UnhandledError
{
[default] interface Windows.ApplicationModel.Core.IUnhandledError;
}
[
contract(Windows.Foundation.UniversalApiContract, 1.0),
marshaling_behavior(agile)
]
runtimeclass UnhandledErrorDetectedEventArgs
{
[default] interface Windows.ApplicationModel.Core.IUnhandledErrorDetectedEventArgs;
}
}
|