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
-
pRandom | A 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. |
pBuffer | A pointer to a P6WCHAR buffer in which the temp filename and path will be stored. |
cBuffer | The size of pBuffer in characters. Normally this should be at least P6MAXPATH characters long. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pBuffer is NULL or cBuffer is zero |
P6R::eNotInitialized | The initialize() method was not called successfully before calling this method. |
P6R::eTooSmall | The supplied buffer is too small. Try using using a buffer that is P6MAXPATH charaters long |
Any valid P6ERR | |