ReactOS  0.4.15-dev-3294-ge98684e
fsctrl.c
Go to the documentation of this file.
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 
20  PIRP Irp)
21 {
22  PIO_STACK_LOCATION IoStack;
24  PMSFS_FCB Fcb;
26 
27  DPRINT1("MsfsFileSystemControl(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
28 
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:
39  }
40 
41  Irp->IoStatus.Status = Status;
42  Irp->IoStatus.Information = 0;
44 
45  return Status;
46 }
47 
48 /* EOF */
LONG NTSTATUS
Definition: precomp.h:26
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
return STATUS_NOT_IMPLEMENTED
_In_ PIRP Irp
Definition: csq.h:116
#define IoCompleteRequest
Definition: irp.c:1240
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:547
NTSTATUS DEFAULTAPI MsfsFileSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
Definition: fsctrl.c:19
Status
Definition: gdiplustypes.h:24
* PFILE_OBJECT
Definition: iotypes.h:1998
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2793
PFILE_OBJECT FileObject
Definition: iotypes.h:3169
#define DEFAULTAPI
Definition: msfs.h:15
#define DPRINT1
Definition: precomp.h:8
#define IO_NO_INCREMENT
Definition: iotypes.h:598
Definition: msfs.h:24
struct _NAMED_PIPE_CREATE_PARAMETERS * Parameters
Definition: iotypes.h:3128
_In_ PFCB Fcb
Definition: cdprocs.h:159