rename.c revision 78a072e1b56619e3230735ae073668311232ec94
/*++
Copyright (c) 1989 - 1999 Microsoft Corporation
Module Name:
Abstract:
This module implements rename in the null minirdr.
--*/
#include "precomp.h"
#pragma hdrstop
#ifdef VBOX
#endif
VBoxMRxRename (IN PRX_CONTEXT RxContext, IN FILE_INFORMATION_CLASS FileInformationClass, IN PVOID pBuffer, IN ULONG BufferLength)
/*++
Routine Description:
This routine does a rename. since the real NT-->NT path is not implemented at the server end,
we implement just the downlevel path.
Arguments:
RxContext - the RDBSS context
FILE_INFO_CLASS - must be rename....shouldn't really pass this
pBuffer - pointer to the new name
bufferlength - and the size
Return Value:
NTSTATUS - The return status for the operation
--*/
{
int vboxRC;
Log(("VBOXSF: VBoxMRxRename: FileName = %.*ls\n", RenameInformation->FileNameLength / sizeof(WCHAR), &RenameInformation->FileName[0]));
/* Must close the file before renaming it! */
{
}
/* Mark it as renamed, so we do nothing during close */
/* Calculate length required for destination path.
*/
return STATUS_INSUFFICIENT_RESOURCES;
Log(("VBOXSF: VBoxMRxRename: Setting up destination path ...\n"));
Log(("VBOXSF: VBoxMRxRename: Destination path = %.*ls\n", DestPath->u16Length / sizeof(WCHAR), &DestPath->String.ucs2[0]));
/* Calculate length required for source path
*/
return STATUS_INSUFFICIENT_RESOURCES;
Log(("VBOXSF: VBoxMRxRename: Setting up source path ...\n"));
Log(("VBOXSF: VBoxMRxRename: Source path = %.*ls\n", SrcPath->u16Length / sizeof(WCHAR), &SrcPath->String.ucs2[0]));
/* Call host. */
Log(("VBOXSF: VBoxMRxRename: Calling vboxCallRename ...\n", SrcPath->u16Length / sizeof(WCHAR), &SrcPath->String.ucs2[0]));
vboxRC = vboxCallRename(&pDeviceExtension->hgcmClient, &pNetRootExtension->map, SrcPath, DestPath, flags);
if (vboxRC != VINF_SUCCESS)
return (Status);
}