ICertEncodeBitString::Encode method (certenc.h)
The Encode method performs Abstract Syntax Notation One (ASN.1) encoding on a given bit string.
Syntax
HRESULT Encode(
[in] LONG BitCount,
[in] BSTR strBitString,
[out] BSTR *pstrBinary
);
Parameters
[in] BitCount
The number of bits in strBitString.
[in] strBitString
The bit string to encode.
[out] pstrBinary
A pointer to a BSTR that will contain the encoded bit string. When you have finished using this BSTR, call the SysFreeString function to free pbstrBinary.
Return value
C++
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.
VB
The return value is the ASN.1-encoded bit string.Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certenc.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certenc.dll |