Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWinAppEx::GetBinary

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.