#include "fs_rec.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ FsRecIsNtfsVolume()
Definition at line 21 of file ntfs.c.
24{
25
27
30
32
41 {
42
44 }
45
46
48}
#define UNREFERENCED_PARAMETER(P)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Referenced by FsRecNtfsFsControl().
◆ FsRecNtfsFsControl()
Definition at line 52 of file ntfs.c.
54{
62
63
65 switch (
Stack->MinorFunction)
66 {
68
69
71
72
73 MountDevice =
Stack->Parameters.MountVolume.DeviceObject;
76 {
77
81
82
85 512,
89 {
90
92 {
93
95 }
96 }
99 512,
103 {
104
106 {
107
109 }
110 }
112 &Offset3,
113 512,
117 {
118
120 {
121
123 }
124 }
125
126
128 }
129 break;
130
132
133
135 L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Ntfs");
136 break;
137
138 default:
139
140
142 }
143
144
146}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
BOOLEAN NTAPI FsRecIsNtfsVolume(IN PPACKED_BOOT_SECTOR BootSector, IN ULONG BytesPerSector, IN PLARGE_INTEGER NumberOfSectors)
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)
BOOLEAN NTAPI FsRecGetDeviceSectors(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, OUT PLARGE_INTEGER SectorCount)
BOOLEAN NTAPI FsRecGetDeviceSectorSize(IN PDEVICE_OBJECT DeviceObject, OUT PULONG SectorSize)
NTSTATUS NTAPI FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject, IN PWCHAR DriverServiceName)
_In_ ULONG _In_ ULONG Offset
#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().