GuestDirectoryImpl.cpp revision ded83c04697bf14ebe491890cd19cec3c8d94aa1
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * VirtualBox Main - Guest directory handling.
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * Copyright (C) 2012-2013 Oracle Corporation
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * available from http://www.virtualbox.org. This file is free software;
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * you can redistribute it and/or modify it under the terms of the GNU
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * General Public License (GPL) as published by the Free Software
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync/*******************************************************************************
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync* Header Files *
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync*******************************************************************************/
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync// constructor / destructor
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync/////////////////////////////////////////////////////////////////////////////
fb98ad2c5db683e0704e0cba88f305e95dc1b73avboxsync// public initializer/uninitializer for internal purposes only
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync/////////////////////////////////////////////////////////////////////////////
fb98ad2c5db683e0704e0cba88f305e95dc1b73avboxsyncint GuestDirectory::init(Console *pConsole, GuestSession *pSession,
1f1986470af9f0bb750dd859b142dc2e952deb20vboxsync ULONG uDirID, const GuestDirectoryOpenInfo &openInfo)
#ifndef VBOX_WITH_GUEST_CONTROL
return VINF_SUCCESS;
return vrc;
return vrc;
return S_OK;
return S_OK;
int GuestDirectory::callbackDispatcher(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb)
int vrc;
case GUEST_DIR_NOTIFY:
#ifdef DEBUG
return vrc;
switch (guestRc)
case VERR_DIR_NOT_EMPTY:
return strError;
return vrc;
return pInterface->setError(VBOX_E_IPRT_ERROR, GuestDirectory::guestErrorToString(guestRc).c_str());
#ifndef VBOX_WITH_GUEST_CONTROL
int guestRc;
switch (rc)
case VERR_GSTCTL_GUEST_ERROR:
case VERR_NOT_SUPPORTED:
return hr;
#ifndef VBOX_WITH_GUEST_CONTROL
int guestRc;
switch (rc)
case VERR_GSTCTL_GUEST_ERROR:
case VERR_ACCESS_DENIED:
hr = setError(VBOX_E_IPRT_ERROR, tr("Reading directory \"%s\" failed: Unable to read / access denied"),
case VERR_PATH_NOT_FOUND:
case VERR_NO_MORE_FILES:
return hr;