BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::GetSectionBinary ( LPCTSTR  lpszSubSection,
LPCTSTR  lpszEntry,
LPBYTE *  ppData,
UINT *  pBytes 
)

Retrieves the binary data for a specified value field of a specified key.

The GetSectionBinary function retrieves the binary data associated with the lpszEntry value of a registry key specified by lpszSubSection. Use WriteSectionBinary() or WriteBinary() to save the data.

Parameters
lpszSubSectionSpecifies a relative path to the application data key.
lpszEntrySpecifies the value field to read from.
ppDataPointer to a buffer that receives the data.
pBytesPoints to a variable that specifies the size, in bytes, of the buffer pointed by ppData parameter. When the function returns, the value contains the size of the data copied to ppData.