SspiPrepareForCredRead function

Generates a target name and credential type from the specified identity structure.

The values that this function generates can be passed as the values of the TargetName and Type parameters in a call to the CredRead function.

Syntax


SECURITY_STATUS SspiPrepareForCredRead(
  _In_  PSEC_WINNT_AUTH_IDENTITY_OPAQUE AuthIdentity,
  _In_  PCWSTR                          pszTargetName,
  _Out_ PULONG                          pCredmanCredentialType,
  _Out_ PCWSTR                          *ppszCredmanTargetName
);

Parameters

AuthIdentity [in]

The identity structure from which to generate the credentials to be passed to the CredRead function.

pszTargetName [in]

A target name that can be modified by this function depending on the value of the AuthIdentity parameter.

pCredmanCredentialType [out]

The credential type to pass to the CredRead function.

ppszCredmanTargetName [out]

The target name to pass to the CredRead function.

Return value

If the function succeeds, it returns SEC_E_OK.

If the function fails, it returns a nonzero error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Sspi.h

Library

Secur32.lib

DLL

SspiCli.dll

 

 

Show: