다음을 통해 공유


ISpDataKey::EnumValues (Windows CE 5.0)

Send Feedback

This method enumerates the values of the specified token.

HRESULT EnumValues(  ULONG Index,   WCHAR** ppszValueName);

Parameters

  • Index
    [in] Value indicating the token to locate in the enumeration sequence.
  • ppszValueName
    [out] Address of a pointer to a null-terminated string specifying names of the enumerated key values. This 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 ppszValueName 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

ISpDataKey | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.