Collapse the table of content
Expand the table of content
Expand Minimize
EN
Tätä sisältöä ei ole saatavilla kielelläsi. Tässä on englanninkielinen versio.

GetFriendlyNameOfCert function

[The GetFriendlyNameOfCert function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the CertGetNameString function with the CERT_NAME_FRIENDLY_DISPLAY_TYPE flag.]

The GetFriendlyNameOfCert function retrieves the display name for a certificate.

Note  This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to CryptDlg.dll.
 

Syntax


DWORD GetFriendlyNameOfCert(
  _In_  PCCERT_CONTEXT pccert,
  _Out_ LPTSTR         pchBuffer,
  _In_  DWORD          cchBuffer
);

Parameters

pccert [in]

A pointer to the certificate context whose display name is being retrieved.

pchBuffer [out]

A pointer to a character string that receives the display name for the certificate.

cchBuffer [in]

Number of characters allocated for pchBuffer, including the terminating NULL character.

Return value

The return value is the number of characters, including the terminating NULL character, in the returned display name.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

CryptDlg.h

DLL

CryptDlg.dll

Unicode and ANSI names

GetFriendlyNameOfCertW (Unicode) and GetFriendlyNameOfCertA (ANSI)

 

 

Yhteisösisältö

Lisää
Näytä:
© 2015 Microsoft