Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IWConfig::getConfigSection ( const P6WCHAR pSectionName,
P6WCHAR pReturnBuf,
P6UINT32  cBuffer,
P6UINT32 pWritten 
)
pure virtual

If the section name does not exist then the unnamed section is used as a default.

The contents of the entire section is returned in the following format: name=value\nname=value\nname=value\n...name=value\n\0 If pReturnBuf is not large enough to hold the entire section the error eTooSmall is returned. If pReturnBuf is set to NULL then pWritten is modified with the required buffer size to fit the entire section.

Parameters
pSectionName[ in ] Pointer to string defining the section's contents to get
pReturnBuf[ out ] Pointer to buffer to place the entire section's contents into
cBuffer[ in ] Number of characters in the buffer pointed to by pReturnBuf.
pWritten[ out ] Optional can be NULL, returns the number of characters written into pReturnBuf. This parameter cannot be NULL when pReturnBuf is also NULL.
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsufficient memory to buffer section contents.
P6R::eInvalidArgIf pReturnBuf and pWritten are both NULL.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eTooBigThe section values are too big to fit into ReturnBuf.