SpGetCredUIContextFn callback function (ntsecpkg.h)
Retrieves context information from a credential provider.
Syntax
SpGetCredUIContextFn Spgetcreduicontextfn;
NTSTATUS Spgetcreduicontextfn(
[in] LSA_SEC_HANDLE ContextHandle,
[in] GUID *CredType,
[out] PULONG FlatCredUIContextLength,
[out] PUCHAR *FlatCredUIContext
)
{...}
Parameters
[in] ContextHandle
A handle to the context for which to get information.
[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). |
[out] FlatCredUIContextLength
The size, in characters, of the buffer received by the FlatCredUIContext parameter.
[out] FlatCredUIContext
A pointer to an array of characters that specifies information about the context specified by the ContextHandle parameter.
Return value
If the function succeeds, return STATUS_SUCCESS or an informational status code.
If the function fails, return an NTSTATUS error code that indicates the reason it failed. For more information, see Remarks.
Remarks
A pointer to the SpGetCredUIContextFn function is available in the SECPKG_FUNCTION_TABLE structure received from the SpLsaModeInitialize function.
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 | ntsecpkg.h |