ISpDataKey::CreateKey (Windows CE 5.0)
This method creates a subkey and returns a new object that supports ISpDataKey for the specified subkey. If the key already exists, the method opens the existing key instead of overwriting it.
HRESULT CreateKey( const WCHAR* pszSubKeyName, ISpDataKey** ppSubKey);
Parameters
- pszSubKeyName
[in] Pointer to a null-terminated string specifying the name of the key to create. - ppSubKey
[out] Address of a pointer to an ISpDataKey interface for the subkey.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | Either pszSubKeyName or ppKey is invalid or bad. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: sapi.h, sapi.idl.
Link Library: Sapilib.lib.
See Also
Send Feedback on this topic to the authors