Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
1/6/2010
This function creates a token forcefully, based on the supplied token identifier.
Syntax
inline HRESULT SpCreateNewToken(
const WCHAR* 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 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 |