xref: /reactos/drivers/filesystems/msfs/fsctrl.c (revision 1734f297)
1 /*
2  * COPYRIGHT:  See COPYING in the top level directory
3  * PROJECT:    ReactOS kernel
4  * FILE:       drivers/filesystems/msfs/fsctrl.c
5  * PURPOSE:    Mailslot filesystem
6  * PROGRAMMER: Eric Kohl
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include "msfs.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* FUNCTIONS *****************************************************************/
17 
18 NTSTATUS DEFAULTAPI
19 MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
20                       PIRP Irp)
21 {
22     PIO_STACK_LOCATION IoStack;
23     PFILE_OBJECT FileObject;
24     PMSFS_FCB Fcb;
25     NTSTATUS Status;
26 
27     DPRINT1("MsfsFileSystemControl(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
28 
29     IoStack = IoGetCurrentIrpStackLocation(Irp);
30     FileObject = IoStack->FileObject;
31     Fcb = FileObject->FsContext;
32 
33     DPRINT1("Mailslot name: %wZ\n", &Fcb->Name);
34 
35     switch (IoStack->Parameters.FileSystemControl.FsControlCode)
36     {
37     default:
38         Status = STATUS_NOT_IMPLEMENTED;
39     }
40 
41     Irp->IoStatus.Status = Status;
42     Irp->IoStatus.Information = 0;
43     IoCompleteRequest(Irp, IO_NO_INCREMENT);
44 
45     return Status;
46 }
47 
48 /* EOF */
49