Ekspor (0) Cetak
Buka Semua
Expand Minimize
EN
Konten ini tidak tersedia dalam bahasa Anda dan berikut adalah versi bahasa Inggris.

FreeCredentialsHandle function

The FreeCredentialsHandle function notifies the security system that the credentials are no longer needed. An application calls this function to free the credential handle acquired in the call to the AcquireCredentialsHandle (General) function after calling the DeleteSecurityContext function to free any context handles associated with the credential. When all references to this credential set have been removed, the credentials themselves can be removed.

Failure to free credentials handles will result in memory leaks.

Syntax


SECURITY_STATUS SEC_Entry FreeCredentialsHandle(
  _In_  PCredHandle phCredential
);

Parameters

phCredential [in]

A pointer to the CredHandle handle obtained by using the AcquireCredentialsHandle (General) function.

Return value

If the function succeeds, the function returns SEC_E_OK.

If the function fails, it returns the following error code.

Return codeDescription
SEC_E_INVALID_HANDLE

The handle passed to the function is not valid.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Sspi.h (include Security.h)

Library

Secur32.lib

DLL

Secur32.dll

See also

SSPI Functions
AcquireCredentialsHandle (General)

 

 

Konten Komunitas

Tambah
Tampilkan:
© 2014 Microsoft