Share via


SpCreateNewToken (By Token ID) (Windows CE 5.0)

Send Feedback

This function creates a token forcefully, based on the supplied token identifier.

inline HRESULT SpCreateNewToken(constWCHAR* pszTokenId,ISpObjectToken** ppToken);

Parameters

  • pszTokenId
    [in] Pointer to a token identifier.
  • ppToken
    [out] Address of a pointer to the token. It is created with CoCreateInstance and must be manually freed when no longer required.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
FAILED(hr) Appropriate error message.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sphelper.h.
Link Library: Sapilib.lib.

See Also

SAPI Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.