xref: /reactos/drivers/filesystems/fs_rec/cdfs.h (revision 845faec4)
1 /*
2  * PROJECT:     ReactOS File System Recognizer
3  * LICENSE:     GPL-2.0 (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE:     CDFS Recognizer
5  * COPYRIGHT:   Copyright 2017 Colin Finck <colin@reactos.org>
6  */
7 
8 // Information from http://wiki.osdev.org/ISO_9660#Volume_Descriptors
9 
10 // Structures
11 typedef struct _VD_HEADER
12 {
13     char Type;
14     char Identifier[5];
15     char Version;
16 }
17 VD_HEADER, *PVD_HEADER;
18 
19 // Constants
20 #define VD_HEADER_OFFSET        32768       // Offset of the VD Header
21 #define VD_IDENTIFIER           "CD001"     // Identifier that must be in the Volume Descriptor
22 #define VD_IDENTIFIER_LENGTH    5           // Character count of VD_IDENTIFIER
23 #define VD_TYPE_PRIMARY         1           // Type code for Primary Volume Descriptor
24 #define VD_VERSION              1           // Volume Descriptor Version
25