ISpObjectTokenCategory::SetDefaultTokenId
Other versions of this page are also available for the following:
8/28/2008
This method sets a specific token identifier as the default for the category. The defaults are stored either directly in the category by setting the DefaultTokenID value in the category data key, or indirectly by the DefaultTokenIDLocation.
Syntax
HRESULT SetDefaultTokenId(
const WCHAR* pszTokenId
);
Parameters
- pszTokenId
[in] Pointer to a null-terminated string specifying the token identifier to use as the default.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
SPERR_UNINITIALIZED |
Data key interface is not initialized. |
E_INVALIDARG |
pszTokenId 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 |