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.

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.


Share this article: