/* $Id$ */
/** @file
* IPRT - Directory, Windows.
*/
/*
* Copyright (C) 2006-2013 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.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include <Windows.h>
{
/*
* Validate the file mode.
*/
int rc;
{
/*
* Convert to UTF-16.
*/
if (RT_SUCCESS(rc))
{
/*
* Create the directory.
*/
rc = VINF_SUCCESS;
else
/*
* Turn off indexing of directory through Windows Indexing Service
*/
/** @todo This FILE_ATTRIBUTE_NOT_CONTENT_INDEXED hack (for .VDI files,
* really) may cause failures on samba shares. That really sweet and
* need to be addressed differently. We shouldn't be doing this
* unless the caller actually asks for it, must less returning failure,
* for crying out loud! This is only important a couple of places in
* main, if important is the right way to put it... */
if ( RT_SUCCESS(rc)
{
rc = VINF_SUCCESS;
else
}
}
}
else
{
}
return rc;
}
{
/*
* Convert to UTF-16.
*/
if (RT_SUCCESS(rc))
{
/*
* Remove the directory.
*/
rc = VINF_SUCCESS;
else
}
return rc;
}
{
return VERR_NOT_SUPPORTED;
}
{
/*
* Validate input.
*/
AssertMsgReturn(!(fRename & ~RTPATHRENAME_FLAGS_REPLACE), ("%#x\n", fRename), VERR_INVALID_PARAMETER);
/*
* Call the worker.
*/
LogFlow(("RTDirRename(%p:{%s}, %p:{%s}, %#x): returns %Rrc\n", pszSrc, pszSrc, pszDst, pszDst, fRename, rc));
return rc;
}