include: Add IAsyncOperation and TypedEventHandler in windows.foundation.collections.idl.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-03-19 11:06:26 +01:00 committed by Alexandre Julliard
parent 7179898eb2
commit 14161788e1
1 changed files with 25 additions and 0 deletions

View File

@ -47,6 +47,31 @@ cpp_quote("#endif")
]
delegate HRESULT EventHandler<T>([in] IInspectable *sender, [in] T args);
interface IAsyncOperation<TResult>;
[
contract(Windows.Foundation.FoundationContract, 1.0),
uuid(fcdcf02c-e5d8-4478-915a-4d90b74b83a5)
]
delegate HRESULT AsyncOperationCompletedHandler<TResult>([in] IAsyncOperation<TResult> *info, [in] AsyncStatus status);
[
contract(Windows.Foundation.FoundationContract, 1.0),
uuid(9fc2b0bb-e446-44e2-aa61-9cab8f636af2)
]
interface IAsyncOperation<TResult> : IInspectable
{
[propput] HRESULT Completed([in] AsyncOperationCompletedHandler<TResult> *handler);
[propget] HRESULT Completed([out, retval] AsyncOperationCompletedHandler<TResult> **handler);
HRESULT GetResults([out, retval] TResult **results);
}
[
contract(Windows.Foundation.FoundationContract, 1.0),
uuid(9de1c534-6ae1-11e0-84e1-18a905bcc53f)
]
delegate HRESULT TypedEventHandler<TSender, TArgs>([in] TSender sender, [in] TArgs args);
namespace Collections
{
[