BCGControlBar Pro for MFC
virtual BOOL CBCGPRegistry::Write ( LPCTSTR  pszKey,
LPBYTE  pData,
UINT  nBytes 
)
virtual

Sets the data and type of a specified value under a registry key.

Returns
If the function succeeds, the return value is nonzero. It is 0 if the function fails.

You must construct a CBCGPRegistry object with bRead parameter set to nonzero to be able to use the Write function.

Parameters
pszKeyPointer to a string containing the name of the value to set.
pDataPointer to a buffer containing the data to be stored with the specified value name.
nBytesSpecifies the size, in bytes, of the information pointed to by the pData parameter.