The Encode method performs ASN encoding on a bit string stored in the COM object and returns the ASN encoded bit string. The bit string is first initialized and then set before being encoded.
[VB] BSTR Encode(
long BitCount,
BSTR strBitString
);
[JAVA] java.lang.String Encode(
int BitCount,
java.lang.String strBitString
);
[C++] HRESULT Encode(
LONG BitCount, // in
BSTR strBitString, // in
BSTR *pstrBinary // out
);
Returns the ASN encoded bit string.
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 certenc.h.
Import Library: Use certidl.lib.