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

windows.security.credentials.ui.userconsentverifier: Implement…

windows.security.credentials.ui.userconsentverifier: Implement IUserConsentVerifierStatics::CheckAvailabilityAsync(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55709
parent c2d0b2fd
......@@ -2,7 +2,9 @@ MODULE = windows.security.credentials.ui.userconsentverifier.dll
IMPORTS = combase
C_SRCS = \
async.c \
main.c
IDL_SRCS = \
classes.idl
classes.idl \
provider.idl
......@@ -118,10 +118,17 @@ static const struct IActivationFactoryVtbl factory_vtbl =
DEFINE_IINSPECTABLE( user_consent_verifier_statics, IUserConsentVerifierStatics, struct user_consent_verifier_statics, IActivationFactory_iface )
static HRESULT WINAPI check_availability_async( IUnknown *invoker, IUnknown *param, PROPVARIANT *result )
{
result->vt = VT_UI4;
result->ulVal = UserConsentVerifierAvailability_DeviceNotPresent;
return S_OK;
}
static HRESULT WINAPI user_consent_verifier_statics_CheckAvailabilityAsync( IUserConsentVerifierStatics *iface, IAsyncOperation_UserConsentVerifierAvailability **result )
{
FIXME( "iface %p, result %p stub!\n", iface, result );
return E_NOTIMPL;
TRACE( "iface %p, result %p\n", iface, result );
return async_operation_user_consent_verifier_availability_create( (IUnknown *)iface, NULL, check_availability_async, result );
}
static HRESULT WINAPI user_consent_verifier_statics_RequestVerificationAsync( IUserConsentVerifierStatics *iface, HSTRING message,
......
......@@ -35,6 +35,12 @@
#define WIDL_using_Windows_Security_Credentials_UI
#include "windows.security.credentials.ui.h"
#include "provider.h"
typedef HRESULT (WINAPI *async_operation_callback)( IUnknown *invoker, IUnknown *param, PROPVARIANT *result );
extern HRESULT async_operation_user_consent_verifier_availability_create( IUnknown *invoker, IUnknown *param, async_operation_callback callback,
IAsyncOperation_UserConsentVerifierAvailability **out );
#define DEFINE_IINSPECTABLE_( pfx, iface_type, impl_type, impl_from, iface_mem, expr ) \
static inline impl_type *impl_from( iface_type *iface ) \
{ \
......@@ -72,5 +78,7 @@
}
#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 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
/*
* 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.UI {
/* 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