ICertEncodeCRLDistInfo::Encode method (certenc.h)

The Encode method performs Abstract Syntax Notation One (ASN.1) encoding on a certificate revocation list (CRL) distribution information array stored in the COM object and returns the ASN.1-encoded extension.

Before using this method, you must call the Reset method to size the array and the SetNameCount and SetNameEntry methods to set each element in each distribution point structure.

Syntax

HRESULT Encode(
  [out] BSTR *pstrBinary
);

Parameters

[out] pstrBinary

A pointer to a BSTR that will contain the encoded CRL distribution information extension. When you have finished using the BSTR, free it by calling the SysFreeString function.

Return value

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 ASN.1-encoded string that represents the CRL distribution information array.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certenc.h (include Certsrv.h)
Library Certidl.lib
DLL Certenc.dll

See also

ICertEncodeCRLDistInfo

ICertEncodeCRLDistInfo::Reset

ICertEncodeCRLDistInfo::SetNameCount

ICertEncodeCRLDistInfo::SetNameEntry