ISpObjectTokenCategory::SetDefaultTokenId
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
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.