Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDir::getTempFile ( p6IRandom pRandom,
P6WCHAR pBuffer,
P6UINT32  cBuffer 
)
pure virtual

Generate a temporary filename and return the name and temp path.

For example:

c:\temp\{92DDBB93-E55B-49D6-BFC2-C6F007FE52DB}

or

/tmp/{92DDBB93-E55B-49D6-BFC2-C6F007FE52DB}
Parameters
pRandomA pointer to an p6IRandom interface to use, or NULL. If this parmeter is NULL, the call will create it's own instance of p6IRandom. It is STRONGLY adivised that a p6IRandom be created by the caller and passed to any method that requires it. Performance issues may occur if this is not done as the result of limited entropy in the system.
pBufferA pointer to a P6WCHAR buffer in which the temp filename and path will be stored.
cBufferThe size of pBuffer in characters. Normally this should be at least P6MAXPATH characters long.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpBuffer is NULL or cBuffer is zero
P6R::eNotInitializedThe initialize() method was not called successfully before calling this method.
P6R::eTooSmallThe supplied buffer is too small. Try using using a buffer that is P6MAXPATH charaters long
Any valid P6ERR