BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::WriteBinary ( LPCTSTR  lpszEntry,
LPBYTE  pData,
UINT  nBytes 

Stores binary data in a specified value field.

If successful, returns nonzero; otherwise 0.
lpszEntrySpecifies the value field to be set. If a value field with this name does not already exist in the key, it is added.
pDataSpecifies the data to be stored.
nBytesSpecifies the size of data, in bytes, to be stored.