Helper SpCreateBestObject (SAPI 5.3)
Microsoft Speech API 5.3
SpCreateBestObject creates an object from tokens that best match a set of criteria from required and optional attributes.
Found in: sphelper.h
SpCreateBestObject( const WCHAR *pszCategoryId, const WCHAR *pszReqAttribs, const WCHAR *pszOptAttribs, T **ppObject, IUnknown *IUnknown = NULL, DWORD dwClsCtxt = CLSCTX_ALL, );
[in] The null-terminated string category ID on which to base the new token.
[in] The null-terminated string of required attributes for the token.
[in] The null-terminated string of optional attributes for the token.
[out, iid_is(riid)] Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, ppObject contains the requested interface pointer. If the object does not support the interface specified in riid, the implementation must set ppObject to NULL.
[in] Optional parameter used for creating aggregate objects. pUnkOuter is the data for the object. If not specified, the value defaults to NULL.
[in] Context in which the code that manages the newly created object will run. It should be one of the following values. If not specified, the value defaults to CLSCTX_ALL.