Share via


ISpDataKey::EnumValues (Windows Embedded CE 6.0)

1/6/2010

This method enumerates the values of the specified token.

Syntax

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 Value

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

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpDataKey
SAPI Interfaces