ReactOS  0.4.14-dev-552-g2fad488
drive.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for drive.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI HalpAssignDriveLetters (IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
 
NTSTATUS NTAPI HalpReadPartitionTable (IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, IN OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
 
NTSTATUS NTAPI HalpWritePartitionTable (IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
 
NTSTATUS NTAPI HalpSetPartitionInformation (IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file drive.c.

Function Documentation

◆ HalpAssignDriveLetters()

VOID NTAPI HalpAssignDriveLetters ( IN struct _LOADER_PARAMETER_BLOCK LoaderBlock,
IN PSTRING  NtDeviceName,
OUT PUCHAR  NtSystemPath,
OUT PSTRING  NtSystemPathString 
)

Definition at line 19 of file drive.c.

23 {
24  /* Call the kernel */
25  IoAssignDriveLetters(LoaderBlock,
26  NtDeviceName,
27  NtSystemPath,
28  NtSystemPathString);
29 }
VOID FASTCALL IoAssignDriveLetters(IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
Definition: ntoskrnl.c:54

◆ HalpReadPartitionTable()

NTSTATUS NTAPI HalpReadPartitionTable ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  SectorSize,
IN BOOLEAN  ReturnRecognizedPartitions,
IN OUT PDRIVE_LAYOUT_INFORMATION PartitionBuffer 
)

Definition at line 33 of file drive.c.

37 {
38  /* Call the kernel */
40  SectorSize,
43 }
_In_ ULONG _In_ BOOLEAN _Out_ struct _DRIVE_LAYOUT_INFORMATION ** PartitionBuffer
Definition: iofuncs.h:2048
_In_ ULONG _In_ BOOLEAN ReturnRecognizedPartitions
Definition: iofuncs.h:2046
NTSTATUS FASTCALL IoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
Definition: partition.c:495
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
_In_ ULONG SectorSize
Definition: halfuncs.h:291

◆ HalpSetPartitionInformation()

NTSTATUS NTAPI HalpSetPartitionInformation ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  SectorSize,
IN ULONG  PartitionNumber,
IN ULONG  PartitionType 
)

Definition at line 63 of file drive.c.

67 {
68  /* Call the kernel */
70  SectorSize,
73 }
_In_ ULONG _In_ ULONG PartitionNumber
Definition: iofuncs.h:2056
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
NTSTATUS FASTCALL IoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
Definition: ntoskrnl.c:64
CHAR PartitionType
Definition: part_xbox.c:33
_In_ ULONG SectorSize
Definition: halfuncs.h:291

◆ HalpWritePartitionTable()

NTSTATUS NTAPI HalpWritePartitionTable ( IN PDEVICE_OBJECT  DeviceObject,
IN ULONG  SectorSize,
IN ULONG  SectorsPerTrack,
IN ULONG  NumberOfHeads,
IN PDRIVE_LAYOUT_INFORMATION  PartitionBuffer 
)

Definition at line 47 of file drive.c.

52 {
53  /* Call the kernel */
55  SectorSize,
59 }
_In_ ULONG _In_ ULONG _In_ ULONG NumberOfHeads
Definition: iofuncs.h:2066
_In_ ULONG _In_ ULONG SectorsPerTrack
Definition: iofuncs.h:2066
_In_ ULONG _In_ BOOLEAN _Out_ struct _DRIVE_LAYOUT_INFORMATION ** PartitionBuffer
Definition: iofuncs.h:2048
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
NTSTATUS FASTCALL IoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
Definition: ntoskrnl.c:87
_In_ ULONG SectorSize
Definition: halfuncs.h:291