deaf44f8bdc71c8f54a54cc34c5dff308696d1dd
[reactos.git] / reactos / drivers / filesystems / ms / fsctrl.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: services/fs/ms/fsctrl.c
6 * PURPOSE: Mailslot filesystem
7 * PROGRAMMER: Eric Kohl <ekohl@rz-online.de>
8 */
9
10 /* INCLUDES ******************************************************************/
11
12 #include "msfs.h"
13
14 #define NDEBUG
15 #include <debug.h>
16
17
18 /* FUNCTIONS *****************************************************************/
19
20 NTSTATUS DEFAULTAPI
21 MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject,
22 PIRP Irp)
23 {
24 PIO_STACK_LOCATION IoStack;
25 PFILE_OBJECT FileObject;
26 PMSFS_FCB Fcb;
27 PMSFS_CCB Ccb;
28 NTSTATUS Status;
29
30 DPRINT1("MsfsFileSystemControl(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
31
32 IoStack = IoGetCurrentIrpStackLocation(Irp);
33 FileObject = IoStack->FileObject;
34 Fcb = FileObject->FsContext;
35 Ccb = FileObject->FsContext2;
36
37 DPRINT1("Mailslot name: %wZ\n", &Fcb->Name);
38
39 switch (IoStack->Parameters.FileSystemControl.FsControlCode)
40 {
41 #if 0
42 case FSCTL_WAIT_PIPE:
43 break;
44
45 case FSCTL_LISTEN:
46 break;
47
48 case FSCTL_SET_STATE:
49 break;
50
51 case FSCTL_GET_STATE:
52 {
53
54
55 break;
56 }
57
58 #endif
59 default:
60 Status = STATUS_NOT_IMPLEMENTED;
61 }
62
63 Irp->IoStatus.Status = Status;
64 Irp->IoStatus.Information = 0;
65 IoCompleteRequest (Irp, IO_NO_INCREMENT);
66
67 return(Status);
68 }
69
70 /* EOF */