SspiGetCredUIContext function (sspi.h)
Retrieves context information from a credential provider.
Syntax
SECURITY_STATUS SEC_ENTRY SspiGetCredUIContext(
[in] HANDLE ContextHandle,
[in] GUID *CredType,
[in] LUID *LogonId,
[out] PSEC_WINNT_CREDUI_CONTEXT_VECTOR *CredUIContexts,
[out] HANDLE *TokenHandle
);
Parameters
[in] ContextHandle
A pointer to a SEC_WINNT_CREDUI_CONTEXT structure retrieved during a previous call to the SspiUnmarshalCredUIContext function.
[in] CredType
The type of credential specified by the ContextHandle parameter. This can be one of the following values.
Value | Meaning |
---|---|
|
The credential is a password. |
|
The credential is a certificate. |
|
The credential is authentication data from a cryptographic service provider (CSP). |
[in] LogonId
The logon ID associated with the credential specified by the ContextHandle parameter.
The caller must be running as LocalSystem to specify a logon ID.
[out] CredUIContexts
A pointer to a SEC_WINNT_CREDUI_CONTEXT_VECTOR structure that specifies the offset and size of the data in the structure specified by the ContextHandle parameter.
[out] TokenHandle
A handle to the specified user's token.
Return value
If the function succeeds, it returns SEC_E_OK.
If the function fails, it returns a nonzero error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | sspi.h |
Library | Credui.lib |
DLL | Credui.dll |