ISpDataKey::OpenKey (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpDataKey::OpenKey

ISpDataKey::OpenKey opens a specified token subkey. Passes back a new object that supports ISpDataKey for the specified subkey.


HRESULT OpenKey(
   LPCWSTR       *pszSubKeyName,
   ISpDataKey   **ppSubKey
);

Parameters

pszSubKeyName
Address of a null-terminated string specifying the name of the key to open.
ppSubKey
Address of a pointer to an ISpDataKey interface.

Return values

ValueDescription
S_OKFunction completed successfully.
E_INVALIDARGpszSubKeyName is invalid or bad.
E_POINTERppSubKey is invalid or bad.
SPERR_NOT_FOUNDRegistry key not found.
FAILED(hr)Appropriate error message.
Show: