ISpDataKey::EnumKeys (Windows CE 5.0)
This method enumerates the subkeys of the specified token.
HRESULT EnumKeys( ULONG Index, WCHAR** ppszSubKeyName);
Parameters
- Index
[in] Value indicating the token to locate in the enumeration sequence. - ppszSubKeyName
[out] Address of a pointer to a null-terminated string specifying the name of the enumerated key. The associated object must be freed with CoTaskMemFree when no longer required.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | ppszSubKeyName is invalid or bad. |
SPERR_NOT_FOUND | Registry key not found. |
E_OUTOFMEMORY | Not enough memory to allocate string. |
SPERR_NO_MORE_ITEMS | No items could be accessed. |
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