Share via


SpSetCommonTokenData (Windows Embedded CE 6.0)

1/6/2010

This function sets common data for an object token. Unused parameters must be NULL.

Syntax

inline HRESULT SpSetCommonTokenData(
  ISpObjectToken* pToken,
  const CLSID* pclsid,
  const WCHAR* pszLangIndependentName,
  LANGID langid,
  const WCHAR* pszLangDependentName,
  ISpDataKey** ppDataKeyAttribs
);

Parameters

  • pclsid
    [in] Pointer to the token identifier, or NULL if no token is specified.
  • pszLangIndependentName
    [in] Pointer to the language-independent name of the token.
  • langid
    [in] Language identifier of the word. This value can be zero to indicate that the word can be of any language.
  • pszLangDependentName
    [in] Pointer to the language-dependent name of the token.
  • ppDataKeyAttribs
    [in] Address of a pointer to an object implementing ISpDataKey that contains data attributes for the token. The data key is created if it does not currently exist. This value can be NULL if the data key is not needed.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Function completed successfully.

FAILED(hr)

Appropriate error message.

Requirements

Header sphelper.h
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

SAPI Functions