Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendrive.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS HAL 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: hal/halx86/generic/drive.c 00005 * PURPOSE: I/O HAL Routines for Disk Access 00006 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) 00007 */ 00008 00009 /* INCLUDES ******************************************************************/ 00010 00011 #include <hal.h> 00012 #define NDEBUG 00013 #include <debug.h> 00014 00015 /* FUNCTIONS *****************************************************************/ 00016 00017 VOID 00018 NTAPI 00019 HalpAssignDriveLetters(IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, 00020 IN PSTRING NtDeviceName, 00021 OUT PUCHAR NtSystemPath, 00022 OUT PSTRING NtSystemPathString) 00023 { 00024 /* Call the kernel */ 00025 IoAssignDriveLetters(LoaderBlock, 00026 NtDeviceName, 00027 NtSystemPath, 00028 NtSystemPathString); 00029 } 00030 00031 NTSTATUS 00032 NTAPI 00033 HalpReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, 00034 IN ULONG SectorSize, 00035 IN BOOLEAN ReturnRecognizedPartitions, 00036 IN OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer) 00037 { 00038 /* Call the kernel */ 00039 return IoReadPartitionTable(DeviceObject, 00040 SectorSize, 00041 ReturnRecognizedPartitions, 00042 PartitionBuffer); 00043 } 00044 00045 NTSTATUS 00046 NTAPI 00047 HalpWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, 00048 IN ULONG SectorSize, 00049 IN ULONG SectorsPerTrack, 00050 IN ULONG NumberOfHeads, 00051 IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer) 00052 { 00053 /* Call the kernel */ 00054 return IoWritePartitionTable(DeviceObject, 00055 SectorSize, 00056 SectorsPerTrack, 00057 NumberOfHeads, 00058 PartitionBuffer); 00059 } 00060 00061 NTSTATUS 00062 NTAPI 00063 HalpSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, 00064 IN ULONG SectorSize, 00065 IN ULONG PartitionNumber, 00066 IN ULONG PartitionType) 00067 { 00068 /* Call the kernel */ 00069 return IoSetPartitionInformation(DeviceObject, 00070 SectorSize, 00071 PartitionNumber, 00072 PartitionType); 00073 } 00074 /* EOF */ Generated on Sat May 26 2012 04:27:15 for ReactOS by
1.7.6.1
|