Historical Content Alert
This is a historical content for Windows NT 4.0 product and is presented for informative purposes only. All content in this directory is copyrighted and owned by Microsoft.

GetCertificateExtension

The GetCertificateExtension method gets a specified certificate extension. Note that certificate extensions are distinct from certificate properties. Properties are generic data attached to the request object. Some of these properties are encoded into the certificate (example: BeginDate), while others are just used to mark requests in the queue and log. Extensions are always encoded into the certificate, are always marked with an object ID, and always have a critical/non-critical flag.

[VB] VARIANT GetCertificateExtension(
  BSTR strExtensionName,  
  long Type               
);
 
[JAVA] com.ms.Variant GetCertificateExtension(
  java.lang.String strExtensionName,  
  int Type                            
);
 
[C++] HRESULT GetCertificateExtension(
  BSTR const strExtensionName,  // in
  LONG Type,                    // in
  VARIANT * pvarValue           // out, return value
);
 

Parameters

[VB][JAVA][C++] strExtensionName
A string specifying the name of the extension.

[VB][JAVA][C++] Type

Specifies the type of the extension. The type can be one of the following types.

Type Description
PROPTYPE_LONG Signed long data
PROPTYPE_DATE Date / Time
PROPTYPE_BINARY Binary data
PROPTYPE_STRING String data

[C++] pvarValue
Points to the return value. See Return Value.

Return Values

Returns the requested extension value.


Share this article: