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
);
Type | Description |
---|---|
PROPTYPE_LONG | Signed long data |
PROPTYPE_DATE | Date / Time |
PROPTYPE_BINARY | Binary data |
PROPTYPE_STRING | String data |
Returns the requested extension value.
Windows NT: Requires version 5.0 or later (or version 4.0 with the Windows NT 4.0 Option Pack).
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certif.h.
Import Library: Use certidl.lib.