2017-09-28 09:40:46 +02:00
|
|
|
/*
|
|
|
|
* Speech API (SAPI) private header file.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Huw Davies
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2018-02-03 00:17:52 +01:00
|
|
|
#include "wine/heap.h"
|
2017-09-28 09:40:49 +02:00
|
|
|
|
2017-09-28 09:40:46 +02:00
|
|
|
HRESULT data_key_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2019-11-18 03:18:40 +01:00
|
|
|
HRESULT file_stream_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2019-11-18 03:17:51 +01:00
|
|
|
HRESULT speech_voice_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2017-09-28 09:40:52 +02:00
|
|
|
HRESULT token_category_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2017-09-28 09:40:48 +02:00
|
|
|
HRESULT token_enum_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2020-09-16 08:22:59 +02:00
|
|
|
HRESULT token_create( IUnknown *outer, REFIID iid, void **obj ) DECLSPEC_HIDDEN;
|
2017-09-28 09:40:46 +02:00
|
|
|
|
2017-09-28 09:40:49 +02:00
|
|
|
static inline LPWSTR heap_strdupW(LPCWSTR str)
|
|
|
|
{
|
|
|
|
LPWSTR ret = NULL;
|
|
|
|
DWORD size;
|
|
|
|
|
|
|
|
if (str)
|
|
|
|
{
|
2019-06-20 09:06:34 +02:00
|
|
|
size = (lstrlenW( str ) + 1) * sizeof(WCHAR);
|
2017-09-28 09:40:49 +02:00
|
|
|
ret = heap_alloc( size );
|
|
|
|
if (ret) memcpy( ret, str, size );
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|