HexFromBin  

The HexFromBin function converts a binary number into a string representation of a hexadecimal number.

 

Note  This function may not be supported in future versions of MAPI.

 

Quick Info

Header file:

MAPIUTIL.H

Implemented by:

MAPI

Called by:

Client applications and service providers

 

void HexFromBin(

    LPBYTE pb,

 

    int cb,

 

    LPTSTR sz

 

   );

 

 

Parameters

pb

[in] Pointer to the binary data to be converted.

cb

[in] Size, in bytes, of the pb parameter.

sz

[out] Pointer to the returned null-terminated string representing the binary data.

 

Remarks

The HexFromBin function takes a pointer to a unit of binary data whose size is indicated by the cb parameter. It returns back in the sz string, within (2*cb)+1 bytes of memory, a representation of this binary information in hexadecimal numbers. If the byte value is 10, for example, the hexadecimal string will be 0A, so one byte becomes two bytes long in the string.