Share via


ISpDataKey::SetData (Windows Embedded CE 6.0)

1/6/2010

This method sets the binary data for a token.

Syntax

HRESULT SetData(
  const WCHAR* pszValueName, 
  ULONG cbData, 
  const BYTE* pData
);

Parameters

  • pszValueName
    [in] Pointer to a null-terminated string specifying the name of the key value.
  • cbData
    [in] Size of the pData parameter.
  • pData
    [in] Pointer to the buffer containing the binary data to set.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_INVALIDARG

Either pszValueName or pData is an invalid or bad pointer.

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