Funzione di callback spFormatCredentialsFn (ntsecpkg.h)

Formatta le credenziali da archiviare in un oggetto utente.

Sintassi

SpFormatCredentialsFn Spformatcredentialsfn;

NTSTATUS Spformatcredentialsfn(
  [in]  PSecBuffer Credentials,
  [out] PSecBuffer FormattedCredentials
)
{...}

Parametri

[in] Credentials

Puntatore a una struttura SecBuffer contenente le credenziali da formattare.

[out] FormattedCredentials

Puntatore a una struttura SecBuffer contenente le credenziali formattate. Allocare memoria per la struttura usando la funzione AllocateHeap .

Valore restituito

Se la funzione ha esito positivo, restituire STATUS_SUCCESS.

Se la funzione ha esito negativo, restituisce un codice NTSTATUS che indica il motivo per cui non è riuscito.

Commenti

SSP/AP deve implementare la funzione SpFormatCredentials ; tuttavia, il nome effettivo assegnato all'implementazione è fino allo sviluppatore.

Un puntatore alla funzione SpFormatCredentials è disponibile nella struttura SECPKG_USER_FUNCTION_TABLE ricevuta dalla funzione SpUserModeInitialize .

Requisiti

Requisito Valore
Client minimo supportato Windows XP [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione ntsecpkg.h

Vedi anche

AllocateHeap

SECPKG_USER_FUNCTION_TABLE

SpUserModeInitialize