ICertEncodeBitString::Encode

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
);
 

Parameters

[VB][JAVA][C++] BitCount
Specifies the size of the bit string.
[VB][JAVA][C++] strBitString
Specifies the bit string.
[C++] pstrBinary
Points to the return value. See Return Values.

Return Values

Returns the ASN encoded bit string.

QuickInfo

  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.