Commit 59a7ee1a authored by Shaun Ren's avatar Shaun Ren Committed by Alexandre Julliard

sapi: Implement ISpeechObjectToken::GetIDsOfNames.

parent 001d1a43
......@@ -660,6 +660,7 @@ static IClassFactory test_class_cf = { &ClassFactoryVtbl };
static void test_object_token(void)
{
static const WCHAR test_token_id[] = L"HKEY_LOCAL_MACHINE\\Software\\Winetest\\sapi\\TestToken";
static const WCHAR *get_description = L"GetDescription";
ISpObjectToken *token;
IDispatch *disp;
......@@ -671,6 +672,7 @@ static void test_object_token(void)
ISpObjectTokenCategory *cat;
DWORD regid;
IUnknown *obj;
DISPID dispid;
DISPPARAMS params;
VARIANT arg, ret;
......@@ -919,6 +921,11 @@ static void test_object_token(void)
ok( tempB && !wcscmp( tempB, L"TestToken" ), "got %s\n", wine_dbgstr_w( tempB ) );
SysFreeString( tempB );
dispid = 0xdeadbeef;
hr = ISpeechObjectToken_GetIDsOfNames( speech_token, &IID_NULL, (WCHAR **)&get_description, 1, 0x409, &dispid );
ok( hr == S_OK, "got %08lx\n", hr );
ok( dispid == DISPID_SOTGetDescription, "got %08lx\n", dispid );
memset( &params, 0, sizeof(params) );
params.cArgs = 1;
params.cNamedArgs = 0;
......
......@@ -1787,8 +1787,18 @@ static HRESULT WINAPI speech_token_GetIDsOfNames( ISpeechObjectToken *iface,
LCID lcid,
DISPID *dispids )
{
FIXME( "stub\n" );
return E_NOTIMPL;
ITypeInfo *ti;
HRESULT hr;
TRACE( "(%p)->(%s %p %u %#lx %p)\n",
iface, debugstr_guid( iid ), names, count, lcid, dispids );
if (FAILED(hr = get_typeinfo( ISpeechObjectToken_tid, &ti )))
return hr;
hr = ITypeInfo_GetIDsOfNames( ti, names, count, dispids );
ITypeInfo_Release( ti );
return hr;
}
static HRESULT WINAPI speech_token_Invoke( ISpeechObjectToken *iface,
......
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