SspiUnmarshalCredUIContext function (sspi.h)

Deserializes credential information obtained by a credential provider during a previous call to the ICredentialProvider::SetSerialization method.

Syntax

SECURITY_STATUS SEC_ENTRY SspiUnmarshalCredUIContext(
  [in]  PUCHAR                    MarshaledCredUIContext,
  [in]  ULONG                     MarshaledCredUIContextLength,
  [out] PSEC_WINNT_CREDUI_CONTEXT *CredUIContext
);

Parameters

[in] MarshaledCredUIContext

The serialized credential information obtained as the rgbSerialization member of the CREDENTIAL_PROVIDER_CREDENTIAL_SERIALIZATION structure retrieved from a call to the ICredentialProvider::SetSerialization method.

[in] MarshaledCredUIContextLength

The size, in bytes, of the MarshaledCredUIContext buffer.

[out] CredUIContext

A pointer to a SEC_WINNT_CREDUI_CONTEXT structure that specifies the deserialized credential information.

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