Commit f89774a7 authored by Bernhard Kölbl's avatar Bernhard Kölbl Committed by Alexandre Julliard

include/windows.foundation.idl: Add IAsyncAction interface.

parent d3f51b1d
......@@ -29,6 +29,12 @@ import "windows.foundation.collections.idl";
namespace Windows {
namespace Foundation {
interface IAsyncAction;
}
}
namespace Windows {
namespace Foundation {
typedef enum PropertyType PropertyType;
typedef struct Point Point;
typedef struct Size Size;
......@@ -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();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment