Export (0) Print
Expand All

ICertEncodeBitString::Decode method

The Decode method decodes an Abstract Syntax Notation One (ASN.1)-encoded bit string and stores the resulting bit string in this object. You can then call the ICertEncodeBitString::GetBitCount and ICertEncodeBitString::GetBitString methods to retrieve the bit string and its size.

Syntax


HRESULT Decode(
  [inconst BSTR strBinary
);

Parameters

strBinary [in]

An ASN.1-encoded bit string.

Return value

VB

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

Use this method to decode an encoded bit string.

Examples

For an example that calls the Decode method, see the ICertEncodeBitString::Encode method.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certenc.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certenc.dll

IID

IID_ICertEncodeBitString is defined as 6db525be-1278-11d1-9bd4-00c04fb683fa

See also

ICertEncodeBitString
ICertEncodeBitString::Encode

 

 

Community Additions

ADD
Show:
© 2015 Microsoft