Allow compilation of fs_rec driver with MSVC
Modified: trunk/reactos/drivers/fs/fs_rec/blockdev.c
Modified: trunk/reactos/drivers/fs/fs_rec/cdfs.c
Modified: trunk/reactos/drivers/fs/fs_rec/fat.c
Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.c
Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.h
Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.rc
Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.xml
Modified: trunk/reactos/drivers/fs/fs_rec/ntfs.c
Modified: trunk/reactos/drivers/fs/fs_rec/udfs.c

Modified: trunk/reactos/drivers/fs/fs_rec/blockdev.c
--- trunk/reactos/drivers/fs/fs_rec/blockdev.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/blockdev.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             services/fs/fs_rec/blockdev.c
@@ -27,8 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ddk/ntddk.h>
-
 #define NDEBUG
 #include <debug.h>
 

Modified: trunk/reactos/drivers/fs/fs_rec/cdfs.c
--- trunk/reactos/drivers/fs/fs_rec/cdfs.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/cdfs.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             services/fs/fs_rec/cdfs.c
@@ -27,10 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ntifs.h>
-#include <ntdddisk.h>
-#include <ntddcdrm.h>
-
 #define NDEBUG
 #include <debug.h>
 

Modified: trunk/reactos/drivers/fs/fs_rec/fat.c
--- trunk/reactos/drivers/fs/fs_rec/fat.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/fat.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/fs/fs_rec/vfat.c
@@ -27,9 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ntifs.h>
-#include <ntdddisk.h>
-
 #define NDEBUG
 #include <debug.h>
 
@@ -46,7 +42,7 @@
    DISK_GEOMETRY DiskGeometry;
    ULONG Size;
    struct _BootSector* Boot;
-   BOOL RecognizedFS = FALSE;
+   BOOLEAN RecognizedFS = FALSE;
    Size = sizeof(DISK_GEOMETRY);
 
    Status = FsRecDeviceIoControl(DeviceObject,
@@ -90,8 +86,8 @@
       }
       else if (DiskGeometry.MediaType == RemovableMedia &&
                PartitionInfo.PartitionNumber > 0 &&
-               PartitionInfo.StartingOffset.QuadPart == 0LL &&
-               PartitionInfo.PartitionLength.QuadPart > 0LL)
+               PartitionInfo.StartingOffset.QuadPart == 0 &&
+               PartitionInfo.PartitionLength.QuadPart > 0)
       {
          /* This is possible a removable media formated as super floppy */
          RecognizedFS = TRUE;

Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.c
--- trunk/reactos/drivers/fs/fs_rec/fs_rec.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/fs_rec.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/fs/fs_rec/fs_rec.c
@@ -27,8 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ntifs.h>
-
 #define NDEBUG
 #include <debug.h>
 

Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.h
--- trunk/reactos/drivers/fs/fs_rec/fs_rec.h	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/fs_rec.h	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/fs/fs_rec/fs_rec.h
@@ -25,7 +24,14 @@
  * PROGRAMMER:       Eric Kohl
  */
 
+#include <ntifs.h>
+#include <ntdddisk.h>
+#include <ntddcdrm.h>
 
+#ifdef _MSC_VER
+#define STDCALL
+#endif
+
 /* Filesystem types (add new filesystems here)*/
 
 #define FS_TYPE_UNUSED		0
@@ -40,6 +46,7 @@
   ULONG FsType;
 } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
 
+#include <pshpack1.h>
 struct _BootSector
 {
   unsigned char  magic0, res0, magic1;
@@ -57,7 +64,8 @@
   unsigned char  VolumeLabel[11], SysType[8];
   unsigned char  Res2[448];
   unsigned short Signatur1;
-} __attribute__((packed));
+};
+#include <poppack.h>
 
 /* blockdev.c */
 

Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.rc
--- trunk/reactos/drivers/fs/fs_rec/fs_rec.rc	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/fs_rec.rc	2005-09-04 21:14:54 UTC (rev 17641)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 #define REACTOS_VERSION_DLL
 #define REACTOS_STR_FILE_DESCRIPTION	"Filesystem recognizer driver\0"
 #define REACTOS_STR_INTERNAL_NAME	"fs_rec\0"

Modified: trunk/reactos/drivers/fs/fs_rec/fs_rec.xml
--- trunk/reactos/drivers/fs/fs_rec/fs_rec.xml	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/fs_rec.xml	2005-09-04 21:14:54 UTC (rev 17641)
@@ -1,6 +1,6 @@
 <module name="fs_rec" type="kernelmodedriver" installbase="system32/drivers" installname="fs_rec.sys">
 	<include base="fs_rec">.</include>
-        <define name="__USE_W32API" />
+	<define name="__USE_W32API" />
 	<library>ntoskrnl</library>
 	<library>hal</library>
 	<file>blockdev.c</file>

Modified: trunk/reactos/drivers/fs/fs_rec/ntfs.c
--- trunk/reactos/drivers/fs/fs_rec/ntfs.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/ntfs.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/fs/fs_rec/ntfs.c
@@ -27,9 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ntifs.h>
-#include <ntdddisk.h>
-
 #define NDEBUG
 #include <debug.h>
 

Modified: trunk/reactos/drivers/fs/fs_rec/udfs.c
--- trunk/reactos/drivers/fs/fs_rec/udfs.c	2005-09-04 20:45:34 UTC (rev 17640)
+++ trunk/reactos/drivers/fs/fs_rec/udfs.c	2005-09-04 21:14:54 UTC (rev 17641)
@@ -16,8 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$
- *
+/*
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
  * FILE:             drivers/fs/fs_rec/udfs.c
@@ -27,10 +26,6 @@
 
 /* INCLUDES *****************************************************************/
 
-#include <ntifs.h>
-#include <ntdddisk.h>
-#include <ntddcdrm.h>
-
 #define NDEBUG
 #include <debug.h>