mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:12:58 +00:00
[FS_REC] Register a recognizer for FAT filesystem on CD-ROMs.
This handles the \FatCdrom device, supported by MS fastfat.
This commit is contained in:
parent
00ae7c52f9
commit
618076dc47
1 changed files with 15 additions and 2 deletions
|
@ -318,10 +318,12 @@ NTAPI
|
||||||
DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
IN PUNICODE_STRING RegistryPath)
|
IN PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
ULONG DeviceCount = 0;
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
ULONG DeviceCount = 0;
|
||||||
PDEVICE_OBJECT CdfsObject;
|
PDEVICE_OBJECT CdfsObject;
|
||||||
PDEVICE_OBJECT UdfsObject;
|
PDEVICE_OBJECT UdfsObject;
|
||||||
|
PDEVICE_OBJECT FatObject;
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(RegistryPath);
|
UNREFERENCED_PARAMETER(RegistryPath);
|
||||||
|
@ -392,7 +394,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
/* Register FAT */
|
/* Register FAT */
|
||||||
Status = FsRecRegisterFs(DriverObject,
|
Status = FsRecRegisterFs(DriverObject,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
&FatObject,
|
||||||
L"\\Fat",
|
L"\\Fat",
|
||||||
L"\\FileSystem\\FatRecognizer",
|
L"\\FileSystem\\FatRecognizer",
|
||||||
FS_TYPE_VFAT,
|
FS_TYPE_VFAT,
|
||||||
|
@ -400,6 +402,17 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
0);
|
0);
|
||||||
if (NT_SUCCESS(Status)) DeviceCount++;
|
if (NT_SUCCESS(Status)) DeviceCount++;
|
||||||
|
|
||||||
|
/* Register FAT for CDs */
|
||||||
|
Status = FsRecRegisterFs(DriverObject,
|
||||||
|
FatObject,
|
||||||
|
NULL,
|
||||||
|
L"\\FatCdrom",
|
||||||
|
L"\\FileSystem\\FatCdRomRecognizer",
|
||||||
|
FS_TYPE_VFAT,
|
||||||
|
FILE_DEVICE_CD_ROM_FILE_SYSTEM,
|
||||||
|
0);
|
||||||
|
if (NT_SUCCESS(Status)) DeviceCount++;
|
||||||
|
|
||||||
/* Register NTFS */
|
/* Register NTFS */
|
||||||
Status = FsRecRegisterFs(DriverObject,
|
Status = FsRecRegisterFs(DriverObject,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue