Commit 87b1bd58 authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

cryptowinrt: Import IAsyncOperation from windows.gaming.input.

parent 254b6d69
...@@ -2,7 +2,10 @@ MODULE = cryptowinrt.dll ...@@ -2,7 +2,10 @@ MODULE = cryptowinrt.dll
IMPORTS = combase bcrypt uuid IMPORTS = combase bcrypt uuid
C_SRCS = \ C_SRCS = \
async.c \
credentials.c \ credentials.c \
main.c main.c
IDL_SRCS = classes.idl IDL_SRCS = \
classes.idl \
provider.idl
...@@ -37,10 +37,16 @@ ...@@ -37,10 +37,16 @@
#define WIDL_using_Windows_Security_Credentials #define WIDL_using_Windows_Security_Credentials
#include "windows.security.credentials.h" #include "windows.security.credentials.h"
#include "provider.h"
extern const char *debugstr_hstring( HSTRING hstr ); extern const char *debugstr_hstring( HSTRING hstr );
extern IActivationFactory *credentials_activation_factory; extern IActivationFactory *credentials_activation_factory;
typedef HRESULT (WINAPI *async_operation_callback)( IUnknown *invoker, IUnknown *param, PROPVARIANT *result );
extern HRESULT async_operation_boolean_create( IUnknown *invoker, IUnknown *param, async_operation_callback callback,
IAsyncOperation_boolean **out );
#define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \ #define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \
static inline impl_type *impl_from( iface_type *iface ) \ static inline impl_type *impl_from( iface_type *iface ) \
{ \ { \
...@@ -78,5 +84,7 @@ extern IActivationFactory *credentials_activation_factory; ...@@ -78,5 +84,7 @@ extern IActivationFactory *credentials_activation_factory;
} }
#define DEFINE_IINSPECTABLE( pfx, iface_type, impl_type, base_iface ) \ #define DEFINE_IINSPECTABLE( pfx, iface_type, impl_type, base_iface ) \
DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, &impl->base_iface ) DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, &impl->base_iface )
#define DEFINE_IINSPECTABLE_OUTER( pfx, iface_type, impl_type, outer_iface ) \
DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from_##iface_type, iface_type##_iface, impl->outer_iface )
#endif #endif
/*
* Copyright 2022 Mohamad Al-Jaf
* Copyright 2022 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
*/
#pragma makedep header
#ifdef __WIDL__
#pragma winrt ns_prefix
#endif
import "propidl.idl";
import "inspectable.idl";
import "asyncinfo.idl";
import "eventtoken.idl";
import "windowscontracts.idl";
import "windows.foundation.idl";
namespace Windows.Security.Credentials {
/* type-pruning version of AsyncOperationCompletedHandler<T> */
delegate HRESULT WineAsyncOperationCompletedHandler([in] IInspectable *async, [in] AsyncStatus status);
[
uuid(83f377ee-c799-11ec-9d64-0242ac120002)
]
interface IWineAsyncInfoImpl : IUnknown
{
[propput] HRESULT Completed([in] WineAsyncOperationCompletedHandler *handler);
[propget] HRESULT Completed([out, retval] WineAsyncOperationCompletedHandler **handler);
[propget] HRESULT Result([out, retval] PROPVARIANT *result);
HRESULT Start();
}
}
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