Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6API P6ERR P6CCALL P6R::p6GetDirectory ( P6DIRS  nDir,
P6WCHAR *  pBuffer,
P6SIZE  cBuffer,
P6SIZE *  pcWritten 
)

This method can be used to retrieve the location of the specified directory.

Parameters
nDir[ in ] A value from the P6DIRS enumeration that specifies which directory to retrieve.
pBuffer[ in ] A pointer to a P6R::P6WCHAR * buffer in which will be placed the requested directory path.
cBuffer[ in ] The length in characters of the buffer pointed to by pBuffer.
pcWritten[ out ] [OPTIONAL] The address of a P6SIZE in which to place the number of characters written to pBuffer.
Returns
SuccessP6R::eOkThe pathname was successfully placed in pBuffer.
FailureP6R::eInvalidArgEither pBuffer or pcBuffer is NULL. *pcBuffer is zero, or nDir is not a valid value.
P6R::eTooSmallpszBuffer was too small, The required buffer size has been placed in pcBuffer.
See Also
P6DIRS