ISpDataKey::OpenKey (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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

Value Description
S_OK Function completed successfully.
E_INVALIDARG pszSubKeyName is invalid or bad.
E_POINTER ppSubKey is invalid or bad.
SPERR_NOT_FOUND Registry key not found.
FAILED(hr) Appropriate error message.