Skip to content

Latest commit

 

History

History
88 lines (66 loc) · 3.59 KB

nf-certenc-icertencodealtname-getname.md

File metadata and controls

88 lines (66 loc) · 3.59 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:certenc.ICertEncodeAltName.GetName
ICertEncodeAltName::GetName (certenc.h)
Returns the specified name from the alternate name array.
CCertEncodeAltName object [Security]
GetName method
GetName
GetName method [Security]
GetName method [Security]
CCertEncodeAltName object
GetName method [Security]
ICertEncodeAltName interface
ICertEncodeAltName interface [Security]
GetName method
ICertEncodeAltName.GetName
ICertEncodeAltName::GetName
_certsrv_icertencodealtname_getname
certenc/ICertEncodeAltName::GetName
security.icertencodealtname_getname
security\icertencodealtname_getname.htm
security
25a3f36b-1c09-4b2e-84b7-a725d366fd77
12/05/2018
CCertEncodeAltName object [Security],GetName method, GetName, GetName method [Security], GetName method [Security],CCertEncodeAltName object, GetName method [Security],ICertEncodeAltName interface, ICertEncodeAltName interface [Security],GetName method, ICertEncodeAltName.GetName, ICertEncodeAltName::GetName, _certsrv_icertencodealtname_getname, certenc/ICertEncodeAltName::GetName, security.icertencodealtname_getname
certenc.h
Certsrv.h
Windows
None supported
Windows Server 2003 [desktop apps only]
Certidl.lib
Certenc.dll
Windows
19H1
ICertEncodeAltName::GetName
certenc/ICertEncodeAltName::GetName
c++
APIRef
kbSyntax
COM
Certenc.dll
ICertEncodeAltName.GetName
CCertEncodeAltName.GetName

ICertEncodeAltName::GetName

-description

The GetName method returns the specified name from the alternate name array.

-parameters

-param NameIndex [in]

A zero-based index that specifies the index of the alternate name entry to retrieve.

To retrieve the object identifier (OID) of a CERT_ALT_NAME_OTHER_NAME name, combine the index value with EAN_NAMEOBJECTID (defined as 0x80000000) with a bitwise-OR operation. Otherwise, the binary value is retrieved. To determine the type of name, call the ICertEncodeAltName::GetNameChoice method.

-param pstrName [out]

A pointer to a BSTR that receives the alternate name. When you have finished using the BSTR, free it by calling the SysFreeString function.

-returns

C++

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

The return value is the alternate name at the specified index. The return value is a Unicode string.

-see-also

ICertEncodeAltName

ICertEncodeAltName::GetNameChoice

ICertEncodeAltName::SetNameEntry