-/* $Id: parttab.c,v 1.1 2000/03/26 19:38:18 ea Exp $
+/* $Id: parttab.c,v 1.4 2001/06/08 15:08:36 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* FUNCTIONS *****************************************************************/
-NTSTATUS
-STDCALL
-IoReadPartitionTable (
- PDEVICE_OBJECT DeviceObject,
- ULONG SectorSize,
- BOOLEAN ReturnRecognizedPartitions,
- struct _DRIVE_LAYOUT_INFORMATION ** PBuffer
- )
+NTSTATUS STDCALL
+IoReadPartitionTable(PDEVICE_OBJECT DeviceObject,
+ ULONG SectorSize,
+ BOOLEAN ReturnRecognizedPartitions,
+ PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
{
- UNIMPLEMENTED;
+#ifdef __NTOSKRNL__
+ return HalDispatchTable.HalIoReadPartitionTable(DeviceObject,
+ SectorSize,
+ ReturnRecognizedPartitions,
+ PartitionBuffer);
+#else
+ return HalDispatchTable->HalIoReadPartitionTable(DeviceObject,
+ SectorSize,
+ ReturnRecognizedPartitions,
+ PartitionBuffer);
+#endif
}
-NTSTATUS
-STDCALL
-IoSetPartitionInformation (
- PDEVICE_OBJECT DeviceObject,
- ULONG SectorSize,
- ULONG PartitionNumber,
- ULONG PartitionType)
+
+NTSTATUS STDCALL
+IoSetPartitionInformation(PDEVICE_OBJECT DeviceObject,
+ ULONG SectorSize,
+ ULONG PartitionNumber,
+ ULONG PartitionType)
{
- UNIMPLEMENTED;
+#ifdef __NTOSKRNL__
+ return HalDispatchTable.HalIoSetPartitionInformation(DeviceObject,
+ SectorSize,
+ PartitionNumber,
+ PartitionType);
+#else
+ return HalDispatchTable->HalIoSetPartitionInformation(DeviceObject,
+ SectorSize,
+ PartitionNumber,
+ PartitionType);
+#endif
}
-NTSTATUS
-STDCALL
-IoWritePartitionTable (
- PDEVICE_OBJECT DeviceObject,
- ULONG SectorSize,
- ULONG SectorsPerTrack,
- ULONG NumberOfHeads,
- struct _DRIVE_LAYOUT_INFORMATION * PBuffer
- )
+
+NTSTATUS STDCALL
+IoWritePartitionTable(PDEVICE_OBJECT DeviceObject,
+ ULONG SectorSize,
+ ULONG SectorsPerTrack,
+ ULONG NumberOfHeads,
+ PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
{
- UNIMPLEMENTED;
+#ifdef __NTOSKRNL__
+ return HalDispatchTable.HalIoWritePartitionTable(DeviceObject,
+ SectorSize,
+ SectorsPerTrack,
+ NumberOfHeads,
+ PartitionBuffer);
+#else
+ return HalDispatchTable->HalIoWritePartitionTable(DeviceObject,
+ SectorSize,
+ SectorsPerTrack,
+ NumberOfHeads,
+ PartitionBuffer);
+#endif
}
-
/* EOF */