ICertEncodeLongArray interface

The ICertEncodeLongArray interface provides methods for handling Long arrays used in certificate extensions.

A certificate extension can be created by using a Long array stored in an extension handler COM object instantiated by the policy module. Each element in the array is a Long value.

This interface is provided mainly as a demonstration for encoding custom extensions. The Certificate Services sample programs in the Platform Software Development Kit (SDK) contain source code for this interface.

ICertEncodeLongArray is defined in Certenc.h. When you create your program, however, use Certsrv.h as the include file. Certenc.dll provides the ICertEncodeLongArray interface. The type information for this interface is also in Certencl.dll, which is shipped with the Platform SDK.

Certificate Services interfaces support both apartment-threading and free-threading models. For better throughput, free threading is recommended.

Members

The ICertEncodeLongArray interface inherits from the IDispatch interface. ICertEncodeLongArray also has these types of members:

Methods

The ICertEncodeLongArray interface has these methods.

MethodDescription
Decode

Decodes an Abstract Syntax Notation One (ASN.1)-encoded Long array and stores the resulting array of Long in the COM object.

Encode

Performs ASN.1 encoding on a Long array stored in the COM object and returns the ASN.1-encoded Long array.

GetCount

Returns the number of Long values in a Long array.

GetValue

Returns the Long value at a specified index of a Long array.

Reset

Resets a Long array to a specified number of elements.

SetValue

Sets a Long value at a specified index of a Long array.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certenc.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certenc.dll

IID

IID_ICertEncodeLongArray is defined as 15e2f230-a0a2-11d0-8821-00a0c903b83c

 

 

Community Additions

ADD
Show:
© 2014 Microsoft