ISpObjectTokenCategory::SetDefaultTokenId (Windows CE 5.0)
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.
HRESULT SetDefaultTokenId( const WCHAR* pszTokenId);
Parameters
- pszTokenId
[in] Pointer to a null-terminated string specifying the token identifier to use as the default.
Return Values
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
OS Versions: Windows CE .NET 4.1 and later.
Header: sapi.h, sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpObjectTokenCategory | SAPI Interfaces
Send Feedback on this topic to the authors