Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Helper SpCreateObjectFromToken (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

SpCreateObjectFromToken

SpCreateObjectFromToken creates an object instance from a specified object token.

Found in: sphelper.h

SpCreateObjectFromToken(
   ISpObjectToken  *pToken,
   T              **ppObject,
   IUnknown        *pUnkOuter = NULL,
   DWORD            dwClsCtxt = CLSCTX_ALL
);

Parameters

pToken
[in] The type of object token to create.
ppObject
[out] the object instance being created.
pUnkOuter
[in] Optional parameter used for creating aggregate objects. pUnkOuter is the data for the object. If not specified, the value defaults to NULL.
dwClsCtxt
[in] The type of aggregate object being created. If pUnkOuter is not NULL, this must be supplied. If not specified otherwise, the value defaults to all object types.

Return values

ValueDescription
S_OKFunction completed successfully.
FAILED (hr)Appropriate error message.
Show:
© 2015 Microsoft