2009-12-10 20:26:58 +00:00
|
|
|
/*
|
2001-05-05 15:21:05 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
2009-12-10 20:26:58 +00:00
|
|
|
* FILE: drivers/filesystems/msfs/fsctrl.c
|
2001-05-05 15:21:05 +00:00
|
|
|
* PURPOSE: Mailslot filesystem
|
2006-05-07 11:14:41 +00:00
|
|
|
* PROGRAMMER: Eric Kohl
|
2001-05-05 15:21:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include "msfs.h"
|
|
|
|
|
2005-09-04 22:33:28 +00:00
|
|
|
#define NDEBUG
|
2001-05-05 15:21:05 +00:00
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
2005-09-04 23:18:34 +00:00
|
|
|
NTSTATUS DEFAULTAPI
|
2001-05-05 15:21:05 +00:00
|
|
|
MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
|
2006-05-07 11:14:41 +00:00
|
|
|
PIRP Irp)
|
2001-05-05 15:21:05 +00:00
|
|
|
{
|
2006-05-07 11:14:41 +00:00
|
|
|
PIO_STACK_LOCATION IoStack;
|
|
|
|
PFILE_OBJECT FileObject;
|
|
|
|
PMSFS_FCB Fcb;
|
|
|
|
NTSTATUS Status;
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
DPRINT1("MsfsFileSystemControl(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
|
|
|
FileObject = IoStack->FileObject;
|
|
|
|
Fcb = FileObject->FsContext;
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
DPRINT1("Mailslot name: %wZ\n", &Fcb->Name);
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
switch (IoStack->Parameters.FileSystemControl.FsControlCode)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
Status = STATUS_NOT_IMPLEMENTED;
|
|
|
|
}
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
Irp->IoStatus.Status = Status;
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
2005-05-08 02:16:32 +00:00
|
|
|
|
2006-05-07 11:14:41 +00:00
|
|
|
return Status;
|
2001-05-05 15:21:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|