7 #include <pseh/pseh2.h>
10 #define INIT_SECTION __attribute__((section ("INIT")))
12 #define INIT_SECTION /* Done via alloc_text for MSC */
15 #define USE_ROS_CC_AND_FS
18 #define ENABLE_SWAPOUT
22 #define ROUND_DOWN(n, align) \
23 (((ULONG)n) & ~((align) - 1l))
25 #define ROUND_UP(n, align) \
26 ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
28 #define ROUND_DOWN_64(n, align) \
29 (((ULONGLONG)n) & ~((align) - 1LL))
31 #define ROUND_UP_64(n, align) \
32 ROUND_DOWN_64(((ULONGLONG)n) + (align) - 1LL, (align))
37 unsigned char magic0
, res0
, magic1
;
38 unsigned char OEMName
[8];
39 unsigned short BytesPerSector
;
40 unsigned char SectorsPerCluster
;
41 unsigned short ReservedSectors
;
42 unsigned char FATCount
;
43 unsigned short RootEntries
, Sectors
;
45 unsigned short FATSectors
, SectorsPerTrack
, Heads
;
46 unsigned long HiddenSectors
, SectorsHuge
;
47 unsigned char Drive
, Res1
, Sig
;
48 unsigned long VolumeID
;
49 unsigned char VolumeLabel
[11], SysType
[8];
50 unsigned char Res2
[448];
51 unsigned short Signatur1
;
56 unsigned char magic0
, res0
, magic1
; // 0
57 unsigned char OEMName
[8]; // 3
58 unsigned short BytesPerSector
; // 11
59 unsigned char SectorsPerCluster
; // 13
60 unsigned short ReservedSectors
; // 14
61 unsigned char FATCount
; // 16
62 unsigned short RootEntries
, Sectors
; // 17
63 unsigned char Media
; // 21
64 unsigned short FATSectors
, SectorsPerTrack
, Heads
; // 22
65 unsigned long HiddenSectors
, SectorsHuge
; // 28
66 unsigned long FATSectors32
; // 36
67 unsigned short ExtFlag
; // 40
68 unsigned short FSVersion
; // 42
69 unsigned long RootCluster
; // 44
70 unsigned short FSInfoSector
; // 48
71 unsigned short BootBackup
; // 50
72 unsigned char Res3
[12]; // 52
73 unsigned char Drive
; // 64
74 unsigned char Res4
; // 65
75 unsigned char ExtBootSignature
; // 66
76 unsigned long VolumeID
; // 67
77 unsigned char VolumeLabel
[11], SysType
[8]; // 71
78 unsigned char Res2
[420]; // 90
79 unsigned short Signature1
; // 510
82 struct _BootSectorFatX
84 unsigned char SysType
[4]; // 0
85 unsigned long VolumeID
; // 4
86 unsigned long SectorsPerCluster
; // 8
87 unsigned short FATCount
; // 12
88 unsigned long Unknown
; // 14
89 unsigned char Unused
[4078]; // 18
94 unsigned long ExtBootSignature2
; // 0
95 unsigned char Res6
[480]; // 4
96 unsigned long FSINFOSignature
; // 484
97 unsigned long FreeCluster
; // 488
98 unsigned long NextCluster
; // 492
99 unsigned char Res7
[12]; // 496
100 unsigned long Signatur2
; // 508
103 typedef struct _BootSector BootSector
;
109 struct { unsigned char Filename
[8], Ext
[3]; };
110 unsigned char ShortName
[11];
112 unsigned char Attrib
;
114 unsigned char CreationTimeMs
;
115 unsigned short CreationTime
,CreationDate
,AccessDate
;
118 unsigned short FirstClusterHigh
; // FAT32
119 unsigned short ExtendedAttributes
; // FAT12/FAT16
121 unsigned short UpdateTime
; //time create/update
122 unsigned short UpdateDate
; //date create/update
123 unsigned short FirstCluster
;
124 unsigned long FileSize
;
127 #define FAT_EAFILE "EA DATA. SF"
129 typedef struct _EAFileHeader FAT_EA_FILE_HEADER
, *PFAT_EA_FILE_HEADER
;
133 unsigned short Signature
; // ED
134 unsigned short Unknown
[15];
135 unsigned short EASetTable
[240];
138 typedef struct _EASetHeader FAT_EA_SET_HEADER
, *PFAT_EA_SET_HEADER
;
142 unsigned short Signature
; // EA
143 unsigned short Offset
; // relative offset, same value as in the EASetTable
144 unsigned short Unknown1
[2];
145 char TargetFileName
[12];
146 unsigned short Unknown2
[3];
147 unsigned int EALength
;
151 typedef struct _EAHeader FAT_EA_HEADER
, *PFAT_EA_HEADER
;
155 unsigned char Unknown
;
156 unsigned char EANameLength
;
157 unsigned short EAValueLength
;
162 typedef struct _FATDirEntry FAT_DIR_ENTRY
, *PFAT_DIR_ENTRY
;
166 unsigned char FilenameLength
; // 0
167 unsigned char Attrib
; // 1
168 unsigned char Filename
[42]; // 2
169 unsigned long FirstCluster
; // 44
170 unsigned long FileSize
; // 48
171 unsigned short UpdateTime
; // 52
172 unsigned short UpdateDate
; // 54
173 unsigned short CreationTime
; // 56
174 unsigned short CreationDate
; // 58
175 unsigned short AccessTime
; // 60
176 unsigned short AccessDate
; // 62
181 unsigned char id
; // sequence number for slot
182 WCHAR name0_4
[5]; // first 5 characters in name
183 unsigned char attr
; // attribute byte
184 unsigned char reserved
; // always 0
185 unsigned char alias_checksum
; // checksum for 8.3 alias
186 WCHAR name5_10
[6]; // 6 more characters in name
187 unsigned char start
[2]; // starting cluster number
188 WCHAR name11_12
[2]; // last 2 characters in name
191 typedef struct _slot slot
;
195 #define VFAT_CASE_LOWER_BASE 8 // base is lower case
196 #define VFAT_CASE_LOWER_EXT 16 // extension is lower case
198 #define LONGNAME_MAX_LENGTH 256 // max length for a long filename
200 #define ENTRY_DELETED(DeviceExt, DirEntry) (BooleanFlagOn(DeviceExt->Flags, VCB_IS_FATX) ? FATX_ENTRY_DELETED(&((DirEntry)->FatX)) : FAT_ENTRY_DELETED(&((DirEntry)->Fat)))
201 #define ENTRY_VOLUME(DeviceExt, DirEntry) (BooleanFlagOn(DeviceExt->Flags, VCB_IS_FATX) ? FATX_ENTRY_VOLUME(&((DirEntry)->FatX)) : FAT_ENTRY_VOLUME(&((DirEntry)->Fat)))
202 #define ENTRY_END(DeviceExt, DirEntry) (BooleanFlagOn(DeviceExt->Flags, VCB_IS_FATX) ? FATX_ENTRY_END(&((DirEntry)->FatX)) : FAT_ENTRY_END(&((DirEntry)->Fat)))
204 #define FAT_ENTRY_DELETED(DirEntry) ((DirEntry)->Filename[0] == 0xe5)
205 #define FAT_ENTRY_END(DirEntry) ((DirEntry)->Filename[0] == 0)
206 #define FAT_ENTRY_LONG(DirEntry) (((DirEntry)->Attrib & 0x3f) == 0x0f)
207 #define FAT_ENTRY_VOLUME(DirEntry) (((DirEntry)->Attrib & 0x1f) == 0x08)
209 #define FATX_ENTRY_DELETED(DirEntry) ((DirEntry)->FilenameLength == 0xe5)
210 #define FATX_ENTRY_END(DirEntry) ((DirEntry)->FilenameLength == 0xff)
211 #define FATX_ENTRY_LONG(DirEntry) (FALSE)
212 #define FATX_ENTRY_VOLUME(DirEntry) (((DirEntry)->Attrib & 0x1f) == 0x08)
214 #define FAT_ENTRIES_PER_PAGE (PAGE_SIZE / sizeof (FAT_DIR_ENTRY))
215 #define FATX_ENTRIES_PER_PAGE (PAGE_SIZE / sizeof (FATX_DIR_ENTRY))
217 typedef struct _FATXDirEntry FATX_DIR_ENTRY
, *PFATX_DIR_ENTRY
;
225 typedef union _DIR_ENTRY DIR_ENTRY
, *PDIR_ENTRY
;
227 #define BLOCKSIZE 512
235 #define VCB_VOLUME_LOCKED 0x0001
236 #define VCB_DISMOUNT_PENDING 0x0002
237 #define VCB_IS_FATX 0x0004
238 #define VCB_IS_DIRTY 0x4000 /* Volume is dirty */
239 #define VCB_CLEAR_DIRTY 0x8000 /* Clean dirty flag at shutdown */
244 CHAR VolumeLabel
[11];
248 ULONG rootDirectorySectors
;
252 ULONG SectorsPerCluster
;
253 ULONG BytesPerSector
;
254 ULONG BytesPerCluster
;
255 ULONG NumberOfClusters
;
259 } FATINFO
, *PFATINFO
;
262 struct _VFAT_DIRENTRY_CONTEXT
;
264 typedef struct _HASHENTRY
267 struct _VFATFCB
* self
;
268 struct _HASHENTRY
* next
;
272 typedef struct DEVICE_EXTENSION
*PDEVICE_EXTENSION
;
274 typedef NTSTATUS (*PGET_NEXT_CLUSTER
)(PDEVICE_EXTENSION
,ULONG
,PULONG
);
275 typedef NTSTATUS (*PFIND_AND_MARK_AVAILABLE_CLUSTER
)(PDEVICE_EXTENSION
,PULONG
);
276 typedef NTSTATUS (*PWRITE_CLUSTER
)(PDEVICE_EXTENSION
,ULONG
,ULONG
,PULONG
);
278 typedef NTSTATUS (*PGET_NEXT_DIR_ENTRY
)(PVOID
*,PVOID
*,struct _VFATFCB
*,struct _VFAT_DIRENTRY_CONTEXT
*,BOOLEAN
);
280 typedef struct DEVICE_EXTENSION
282 ERESOURCE DirResource
;
283 ERESOURCE FatResource
;
285 KSPIN_LOCK FcbListLock
;
286 LIST_ENTRY FcbListHead
;
288 struct _HASHENTRY
**FcbHashTable
;
290 PDEVICE_OBJECT VolumeDevice
;
291 PDEVICE_OBJECT StorageDevice
;
292 PFILE_OBJECT FATFileObject
;
294 ULONG LastAvailableCluster
;
295 ULONG AvailableClusters
;
296 BOOLEAN AvailableClustersValid
;
298 struct _VFATFCB
*VolumeFcb
;
300 /* Pointers to functions for manipulating FAT. */
301 PGET_NEXT_CLUSTER GetNextCluster
;
302 PFIND_AND_MARK_AVAILABLE_CLUSTER FindAndMarkAvailableCluster
;
303 PWRITE_CLUSTER WriteCluster
;
304 ULONG CleanShutBitMask
;
306 /* Pointers to functions for manipulating directory entries. */
307 PGET_NEXT_DIR_ENTRY GetNextDirEntry
;
311 LIST_ENTRY VolumeListEntry
;
314 LIST_ENTRY NotifyList
;
315 PNOTIFY_SYNC NotifySync
;
317 /* Incremented on IRP_MJ_CREATE, decremented on IRP_MJ_CLOSE */
318 ULONG OpenHandleCount
;
320 /* VPBs for dismount */
323 } DEVICE_EXTENSION
, VCB
, *PVCB
;
325 #define VFAT_BREAK_ON_CORRUPTION 1
329 PDRIVER_OBJECT DriverObject
;
330 PDEVICE_OBJECT DeviceObject
;
332 ERESOURCE VolumeListLock
;
333 LIST_ENTRY VolumeListHead
;
334 NPAGED_LOOKASIDE_LIST FcbLookasideList
;
335 NPAGED_LOOKASIDE_LIST CcbLookasideList
;
336 NPAGED_LOOKASIDE_LIST IrpContextLookasideList
;
337 FAST_IO_DISPATCH FastIoDispatch
;
338 CACHE_MANAGER_CALLBACKS CacheMgrCallbacks
;
339 } VFAT_GLOBAL_DATA
, *PVFAT_GLOBAL_DATA
;
341 extern PVFAT_GLOBAL_DATA VfatGlobalData
;
343 #define FCB_CACHE_INITIALIZED 0x0001
344 #define FCB_DELETE_PENDING 0x0002
345 #define FCB_IS_FAT 0x0004
346 #define FCB_IS_PAGE_FILE 0x0008
347 #define FCB_IS_VOLUME 0x0010
348 #define FCB_IS_DIRTY 0x0020
349 #define FCB_IS_FATX_ENTRY 0x0040
351 typedef struct _VFATFCB
353 /* FCB header required by ROS/NT */
354 FSRTL_COMMON_FCB_HEADER RFCB
;
355 SECTION_OBJECT_POINTERS SectionObjectPointers
;
356 ERESOURCE MainResource
;
357 ERESOURCE PagingIoResource
;
358 /* end FCB header required by ROS/NT */
360 /* directory entry for this file or directory */
363 /* Pointer to attributes in entry */
366 /* long file name, points into PathNameBuffer */
367 UNICODE_STRING LongNameU
;
369 /* short file name */
370 UNICODE_STRING ShortNameU
;
372 /* directory name, points into PathNameBuffer */
373 UNICODE_STRING DirNameU
;
375 /* path + long file name 260 max*/
376 UNICODE_STRING PathNameU
;
378 /* buffer for PathNameU */
379 PWCHAR PathNameBuffer
;
381 /* buffer for ShortNameU */
382 WCHAR ShortNameBuffer
[13];
387 /* List of FCB's for this volume */
388 LIST_ENTRY FcbListEntry
;
390 /* List of FCB's for the parent */
391 LIST_ENTRY ParentListEntry
;
393 /* pointer to the parent fcb */
394 struct _VFATFCB
*parentFcb
;
396 /* List for the children */
397 LIST_ENTRY ParentListHead
;
399 /* Flags for the fcb */
402 /* pointer to the file object which has initialized the fcb */
403 PFILE_OBJECT FileObject
;
405 /* Directory index for the short name entry */
408 /* Directory index where the long name starts */
411 /* Share access for the file object */
412 SHARE_ACCESS FCBShareAccess
;
414 /* Incremented on IRP_MJ_CREATE, decremented on IRP_MJ_CLEANUP */
415 ULONG OpenHandleCount
;
417 /* Entry into the hash table for the path + long name */
420 /* Entry into the hash table for the path + short name */
423 /* List of byte-range locks for this file */
427 * Optimization: caching of last read/write cluster+offset pair. Can't
428 * be in VFATCCB because it must be reset everytime the allocated clusters
431 FAST_MUTEX LastMutex
;
434 } VFATFCB
, *PVFATFCB
;
436 typedef struct _VFATCCB
438 LARGE_INTEGER CurrentByteOffset
;
439 /* for DirectoryControl */
441 /* for DirectoryControl */
442 UNICODE_STRING SearchPattern
;
443 } VFATCCB
, *PVFATCCB
;
445 #define TAG_CCB 'BCCV'
446 #define TAG_FCB 'BCFV'
447 #define TAG_IRP 'PRIV'
448 #define TAG_VFAT 'TAFV'
450 #define ENTRIES_PER_SECTOR (BLOCKSIZE / sizeof(FATDirEntry))
452 typedef struct __DOSTIME
460 typedef struct __DOSDATE
468 #define IRPCONTEXT_CANWAIT 0x0001
469 #define IRPCONTEXT_COMPLETE 0x0002
470 #define IRPCONTEXT_QUEUE 0x0004
471 #define IRPCONTEXT_PENDINGRETURNED 0x0008
476 PDEVICE_OBJECT DeviceObject
;
477 PDEVICE_EXTENSION DeviceExt
;
479 WORK_QUEUE_ITEM WorkQueueItem
;
480 PIO_STACK_LOCATION Stack
;
483 PFILE_OBJECT FileObject
;
487 } VFAT_IRP_CONTEXT
, *PVFAT_IRP_CONTEXT
;
489 typedef struct _VFAT_DIRENTRY_CONTEXT
494 UNICODE_STRING LongNameU
;
495 UNICODE_STRING ShortNameU
;
496 } VFAT_DIRENTRY_CONTEXT
, *PVFAT_DIRENTRY_CONTEXT
;
498 typedef struct _VFAT_MOVE_CONTEXT
505 } VFAT_MOVE_CONTEXT
, *PVFAT_MOVE_CONTEXT
;
509 VfatMarkIrpContextForQueue(PVFAT_IRP_CONTEXT IrpContext
)
511 PULONG Flags
= &IrpContext
->Flags
;
513 *Flags
&= ~IRPCONTEXT_COMPLETE
;
514 *Flags
|= IRPCONTEXT_QUEUE
;
516 return STATUS_PENDING
;
523 IN PDEVICE_OBJECT pDeviceObject
,
524 IN PLARGE_INTEGER ReadOffset
,
527 IN BOOLEAN Override
);
531 IN PVFAT_IRP_CONTEXT IrpContext
,
532 IN PLARGE_INTEGER ReadOffset
,
534 IN ULONG BufferOffset
,
538 VfatWriteDiskPartial(
539 IN PVFAT_IRP_CONTEXT IrpContext
,
540 IN PLARGE_INTEGER WriteOffset
,
541 IN ULONG WriteLength
,
542 IN ULONG BufferOffset
,
546 VfatBlockDeviceIoControl(
547 IN PDEVICE_OBJECT DeviceObject
,
549 IN PVOID InputBuffer
,
550 IN ULONG InputBufferSize
,
551 IN OUT PVOID OutputBuffer
,
552 IN OUT PULONG pOutputBufferSize
,
553 IN BOOLEAN Override
);
559 PVFAT_IRP_CONTEXT IrpContext
);
565 PVFAT_IRP_CONTEXT IrpContext
);
569 PDEVICE_EXTENSION DeviceExt
,
570 PFILE_OBJECT FileObject
);
576 PVFAT_IRP_CONTEXT IrpContext
);
580 PDEVICE_EXTENSION DeviceExt
,
582 PUNICODE_STRING FileToFindU
,
583 PVFAT_DIRENTRY_CONTEXT DirContext
,
588 PFAT_DIR_ENTRY pEntry
,
589 PUNICODE_STRING NameU
);
593 PDEVICE_EXTENSION DeviceExt
,
599 VfatDirectoryControl(
600 PVFAT_IRP_CONTEXT IrpContext
);
603 FsdDosDateTimeToSystemTime(
604 PDEVICE_EXTENSION DeviceExt
,
607 PLARGE_INTEGER SystemTime
);
610 FsdSystemTimeToDosDateTime(
611 PDEVICE_EXTENSION DeviceExt
,
612 PLARGE_INTEGER SystemTime
,
619 vfatDirEntryGetFirstCluster(
620 PDEVICE_EXTENSION pDeviceExt
,
621 PDIR_ENTRY pDirEntry
);
624 VfatIsDirectoryEmpty(
632 IN PVFAT_DIRENTRY_CONTEXT DirContext
,
640 IN PVFAT_DIRENTRY_CONTEXT DirContext
,
647 PDEVICE_EXTENSION DeviceExt
,
648 PUNICODE_STRING PathNameU
,
651 ULONG RequestedOptions
,
653 PVFAT_MOVE_CONTEXT MoveContext
);
667 PDEVICE_EXTENSION DeviceExt
,
674 IN PDEVICE_EXTENSION DeviceExt
,
676 IN PUNICODE_STRING FileName
,
677 IN BOOLEAN CaseChangeOnly
);
681 IN PDEVICE_EXTENSION DeviceExt
,
683 IN PUNICODE_STRING FileName
,
684 IN PVFATFCB ParentFcb
);
689 VfatSetExtendedAttributes(
690 PFILE_OBJECT FileObject
,
697 VfatInitFastIoRoutines(
698 PFAST_IO_DISPATCH FastIoDispatch
);
702 VfatAcquireForLazyWrite(
708 VfatReleaseFromLazyWrite(
713 VfatAcquireForReadAhead(
719 VfatReleaseFromReadAhead(
726 PDEVICE_EXTENSION DeviceExt
,
727 ULONG CurrentCluster
,
731 FAT12FindAndMarkAvailableCluster(
732 PDEVICE_EXTENSION DeviceExt
,
737 PDEVICE_EXTENSION DeviceExt
,
738 ULONG ClusterToWrite
,
744 PDEVICE_EXTENSION DeviceExt
,
745 ULONG CurrentCluster
,
749 FAT16FindAndMarkAvailableCluster(
750 PDEVICE_EXTENSION DeviceExt
,
755 PDEVICE_EXTENSION DeviceExt
,
756 ULONG ClusterToWrite
,
762 PDEVICE_EXTENSION DeviceExt
,
763 ULONG CurrentCluster
,
767 FAT32FindAndMarkAvailableCluster(
768 PDEVICE_EXTENSION DeviceExt
,
773 PDEVICE_EXTENSION DeviceExt
,
774 ULONG ClusterToWrite
,
780 PDEVICE_EXTENSION DeviceExt
,
788 PDEVICE_EXTENSION DeviceExt
,
793 PDEVICE_EXTENSION DeviceExt
,
794 ULONG CurrentCluster
,
798 GetNextClusterExtend(
799 PDEVICE_EXTENSION DeviceExt
,
800 ULONG CurrentCluster
,
804 CountAvailableClusters(
805 PDEVICE_EXTENSION DeviceExt
,
806 PLARGE_INTEGER Clusters
);
810 PDEVICE_EXTENSION DeviceExt
,
811 ULONG ClusterToWrite
,
818 PDEVICE_EXTENSION pVCB
,
819 PUNICODE_STRING pFileNameU
);
822 vfatSetFCBNewDirName(
823 PDEVICE_EXTENSION pVCB
,
829 PDEVICE_EXTENSION pVCB
,
831 PVFAT_DIRENTRY_CONTEXT DirContext
,
844 PDEVICE_EXTENSION pVCB
,
849 PDEVICE_EXTENSION pVCB
,
853 vfatGrabFCBFromTable(
854 PDEVICE_EXTENSION pDeviceExt
,
855 PUNICODE_STRING pFileNameU
);
859 PDEVICE_EXTENSION pVCB
);
863 PDEVICE_EXTENSION pVCB
);
874 vfatAttachFCBToFileObject(
875 PDEVICE_EXTENSION vcb
,
877 PFILE_OBJECT fileObject
);
881 PDEVICE_EXTENSION pVCB
,
883 PUNICODE_STRING FileToFindU
,
888 PDEVICE_EXTENSION pVCB
,
889 PVFATFCB
*pParentFCB
,
891 PUNICODE_STRING pFileNameU
);
894 vfatMakeFCBFromDirEntry(
896 PVFATFCB directoryFCB
,
897 PVFAT_DIRENTRY_CONTEXT DirContext
,
903 VfatGetStandardInformation(
905 PFILE_STANDARD_INFORMATION StandardInfo
,
906 PULONG BufferLength
);
909 VfatGetBasicInformation(
910 PFILE_OBJECT FileObject
,
912 PDEVICE_OBJECT DeviceObject
,
913 PFILE_BASIC_INFORMATION BasicInfo
,
914 PULONG BufferLength
);
917 VfatQueryInformation(
918 PVFAT_IRP_CONTEXT IrpContext
);
922 PVFAT_IRP_CONTEXT IrpContext
);
925 VfatSetAllocationSizeInformation(
926 PFILE_OBJECT FileObject
,
928 PDEVICE_EXTENSION DeviceExt
,
929 PLARGE_INTEGER AllocationSize
);
935 PVFAT_IRP_CONTEXT IrpContext
);
939 PDEVICE_EXTENSION DeviceExt
,
945 VfatFileSystemControl(
946 PVFAT_IRP_CONTEXT IrpContext
);
953 PDRIVER_OBJECT DriverObject
,
954 PUNICODE_STRING RegistryPath
);
965 PDEVICE_OBJECT DeviceObject
,
980 VfatCheckForDismount(
981 IN PDEVICE_EXTENSION DeviceExt
,
988 PVFAT_IRP_CONTEXT IrpContext
);
994 PVFAT_IRP_CONTEXT IrpContext
);
998 PVFAT_IRP_CONTEXT IrpContext
);
1002 PDEVICE_EXTENSION DeviceExt
,
1004 PULONG CurrentCluster
,
1015 PDEVICE_OBJECT DeviceObject
,
1022 PUNICODE_STRING PathNameU
,
1023 PUNICODE_STRING DirNameU
,
1024 PUNICODE_STRING FileNameU
);
1038 VfatQueryVolumeInformation(
1039 PVFAT_IRP_CONTEXT IrpContext
);
1042 VfatSetVolumeInformation(
1043 PVFAT_IRP_CONTEXT IrpContext
);
1045 #endif /* _FASTFAT_PCH_ */