ICertEncodeLongArray interface (certenc.h)
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.
The ICertEncodeLongArray interface inherits from the IDispatch interface. ICertEncodeLongArray also has these types of members:
The ICertEncodeLongArray interface has these methods.
|ICertEncodeLongArray::Decode||Decodes an Abstract Syntax Notation One (ASN.1)-encoded Long array and stores the resulting array of Long values in the CertEncodeLongArray object.|
|ICertEncodeLongArray::Encode||Returns an ASN.1-encoded string of the LONG array stored in this object.|
|ICertEncodeLongArray::GetCount||Returns the number of Long values in the object's Long array.|
|ICertEncodeLongArray::GetValue||Returns the specified Long value from the Long array.|
|ICertEncodeLongArray::Reset||Specifies the size of the array in this object.|
|ICertEncodeLongArray::SetValue||Sets a Long value at the specified index of the Long array.|
|Minimum supported client||None supported|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||certenc.h (include Certsrv.h)|