DnDDir.cpp revision 82391de567696f10b21a762fde6a06fe3c266d28
/* $Id$ */
/** @file
* DnD: Directory handling.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/******************************************************************************
* Header Files *
******************************************************************************/
int DnDDirCreateDroppedFilesEx(const char *pszPath,
{
return VERR_NO_MEMORY;
/** @todo On Windows we also could use the registry to override
* can be used. */
/* Append our base drop directory. */
if (RT_FAILURE(rc))
return rc;
/* Create it when necessary. */
if (!RTDirExists(pszDropDir))
{
if (RT_FAILURE(rc))
return rc;
}
/* The actually drop directory consist of the current time stamp and a
* unique number when necessary. */
char pszTime[64];
return VERR_BUFFER_OVERFLOW;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
/* Create it (only accessible by the current user) */
}
{
char szTemp[RTPATH_MAX];
/* Get the user's temp directory. Don't use the user's root directory (or
* be kept after the guest OS used it. */
if (RT_FAILURE(rc))
return rc;
}