#include "fs_rec.h"
#include <debug.h>
#include "cdfs.h"
Go to the source code of this file.
◆ NDEBUG
◆ FsRecCdfsFsControl()
Definition at line 66 of file cdfs.c.
68{
74
75
77 switch (
Stack->MinorFunction)
78 {
80
81
83
84
85 MountDevice =
Stack->Parameters.MountVolume.DeviceObject;
87 {
88
90 {
91
93 }
94 }
95
96 break;
97
99
100
102 L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Cdfs");
103 break;
104
105 default:
106
107
109 }
110
111
113}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
BOOLEAN NTAPI FsRecIsCdfsVolume(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize)
BOOLEAN NTAPI FsRecGetDeviceSectorSize(IN PDEVICE_OBJECT DeviceObject, OUT PULONG SectorSize)
NTSTATUS NTAPI FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject, IN PWCHAR DriverServiceName)
#define STATUS_FS_DRIVER_REQUIRED
#define STATUS_INVALID_DEVICE_REQUEST
#define STATUS_UNRECOGNIZED_VOLUME
_In_ PDEVICE_OBJECT DeviceObject
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
#define IRP_MN_LOAD_FILE_SYSTEM
#define IRP_MN_MOUNT_VOLUME
Referenced by FsRecFsControl().
◆ FsRecIsCdfsVolume()
Definition at line 23 of file cdfs.c.
25{
30
31
34 {
35
37 }
38
39
42
43 DPRINT(
"pVdHeader->Type verified!\n");
44
47
48 DPRINT(
"pVdHeader->Identifier verified!\n");
49
52
53 DPRINT(
"pVdHeader->Version verified! This is a CDFS volume!\n");
54
56
58 if (pVdHeader)
60
61 return bReturnValue;
62}
#define VD_IDENTIFIER_LENGTH
static const WCHAR Cleanup[]
#define RtlCompareMemory(s1, s2, l)
BOOLEAN NTAPI FsRecReadBlock(IN PDEVICE_OBJECT DeviceObject, IN PLARGE_INTEGER Offset, IN ULONG Length, IN ULONG SectorSize, IN OUT PVOID *Buffer, OUT PBOOLEAN DeviceError OPTIONAL)
_In_ ULONG _In_ ULONG Offset
Referenced by FsRecCdfsFsControl().