The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Reads binary data from a specified registry key.

BOOL GetBinary(
   LPCTSTR lpszEntry,
   LPBYTE* ppData,
   UINT* pBytes 

[in] lpszEntry

A string that contains the name of a registry key.

[out] ppData

A pointer to the buffer that the method fills with the binary data.

[out] pBytes

A pointer to an unsigned integer that the method uses to write the number of bytes read.

True if successful; false otherwise.

This method reads binary data written to the registry. To write data to the registry, use the methods CWinAppEx::WriteBinary and CWinAppEx::WriteSectionBinary.

The lpszEntry parameter is the name of a registry entry located under the default registry key for your application. To get or set the default registry key, use the methods CWinAppEx::GetRegistryBase and CWinAppEx::SetRegistryBase respectively.


Header: afxwinappex.h