Share via


ISpDataKey::SetStringValue

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This method sets the string value information for a specified token.

Syntax

HRESULT SetStringValue(
  const WCHAR* pszValueName, 
  const WCHAR* pszValue
);

Parameters

  • pszValueName
    [in] Pointer to a null-terminated string specifying the name of the string value to set. If this value is NULL, the method uses the default value of the token.
  • pszValue
    [in] Pointer to a null-terminated string specifying the string value to set.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

E_INVALIDARG

Either pszValueName or pszValue is invalid or bad.

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