Share via


SpSetDefaultTokenForCategoryId (Windows Embedded CE 6.0)

1/6/2010

This function sets the default token for the specified category identifier.

Syntax

inline HRESULT SpSetDefaultTokenForCategoryId(
  const WCHAR* pszCategoryId,
  ISpObjectToken* pToken
);

Parameters

  • pszCategoryId
    [in] Pointer to the category identifier.
  • pToken
    [in] Pointer to an object implementing ISpObjectToken to set as the default.

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