Bernhard Kölbl : include/windows.foundation.idl: Add IAsyncAction interface.
Alexandre Julliard
julliard at winehq.org
Fri Feb 11 14:33:59 CST 2022
Module: wine
Branch: master
Commit: f89774a79f1c72e71a2d38d7154bc64ca1a08562
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f89774a79f1c72e71a2d38d7154bc64ca1a08562
Author: Bernhard Kölbl <besentv at gmail.com>
Date: Mon Jan 31 13:51:46 2022 +0100
include/windows.foundation.idl: Add IAsyncAction interface.
Signed-off-by: Bernhard Kölbl <besentv at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/windows.foundation.idl | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/include/windows.foundation.idl b/include/windows.foundation.idl
index 292522f2c49..a4ee7303ddb 100644
--- a/include/windows.foundation.idl
+++ b/include/windows.foundation.idl
@@ -27,6 +27,12 @@ import "windowscontracts.idl";
/* import "ivectorchangedeventargs.idl"; */
import "windows.foundation.collections.idl";
+namespace Windows {
+ namespace Foundation {
+ interface IAsyncAction;
+ }
+}
+
namespace Windows {
namespace Foundation {
typedef enum PropertyType PropertyType;
@@ -36,6 +42,12 @@ namespace Windows {
typedef struct DateTime DateTime;
typedef struct TimeSpan TimeSpan;
+ [
+ contract(Windows.Foundation.FoundationContract, 1.0),
+ uuid(a4ed5c81-76c9-40bd-8be6-b1d90fb20ae7)
+ ]
+ delegate HRESULT AsyncActionCompletedHandler([in] Windows.Foundation.IAsyncAction *action, [in] AsyncStatus status);
+
[contract(Windows.Foundation.FoundationContract, 1.0)]
enum PropertyType {
Empty = 0,
@@ -128,6 +140,18 @@ namespace Windows {
{
HRESULT Close();
}
+
+ [
+ contract(Windows.Foundation.FoundationContract, 1.0),
+ uuid(5a648006-843a-4da9-865b-9d26e5dfad7b)
+ ]
+ interface IAsyncAction : IInspectable
+ requires IAsyncInfo
+ {
+ [propput] HRESULT Completed([in] Windows.Foundation.AsyncActionCompletedHandler *handler);
+ [propget] HRESULT Completed([out, retval] Windows.Foundation.AsyncActionCompletedHandler **handler);
+ HRESULT GetResults();
+ }
}
}
More information about the wine-cvs
mailing list