ICEnroll4::binaryToString method (xenroll.h)
[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]
The binaryToString method converts a binary data BLOB to a string. This method was first defined in the ICEnroll4 interface.
This method uses the CryptBinaryToString function to do the conversion.
Syntax
HRESULT binaryToString(
[in] LONG Flags,
[in] BSTR strBinary,
[out] BSTR *pstrEncoded
);
Parameters
[in] Flags
The value passed to the dwFlags parameter of the CryptBinaryToString function. For a description of possible values, see CryptBinaryToString.
[in] strBinary
A binary data BLOB to be converted to a string.
[out] pstrEncoded
A pointer to a BSTR that receives the encoded data. When you have finished using the BSTR, free it by calling the SysFreeString function.
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 a string that represents the binary data.Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | xenroll.h |
Library | Uuid.lib |
DLL | Xenroll.dll |