VirtualBox

Changeset 20066 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
May 27, 2009 11:24:23 AM (16 years ago)
Author:
vboxsync
Message:

Runtime: added RTDirCreateTemp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dir-win.cpp

    r14062 r20066  
    3535#define LOG_GROUP RTLOGGROUP_DIR
    3636#include <Windows.h>
     37#include <io.h>
    3738
    3839#include <iprt/dir.h>
     
    128129
    129130
     131RTDECL(int) RTDirCreateTemp(char *pszTemplate)
     132{
     133    if (!_mktemp(pszTemplate))
     134    {
     135        int rc = RTDirCreate(pszTemplate, 0700);
     136        return rc;
     137    }
     138    return RTErrConvertFromWin32(GetLastError());
     139}
     140
     141
    130142RTDECL(int) RTDirRemove(const char *pszPath)
    131143{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette