Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenfat.h
Go to the documentation of this file.
00001 /***************************************************************************** 00002 * FullFAT - High Performance, Thread-Safe Embedded FAT File-System * 00003 * Copyright (C) 2009 James Walmsley (james@worm.me.uk) * 00004 * * 00005 * This program is free software: you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation, either version 3 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00017 * * 00018 * IMPORTANT NOTICE: * 00019 * ================= * 00020 * Alternative Licensing is available directly from the Copyright holder, * 00021 * (James Walmsley). For more information consult LICENSING.TXT to obtain * 00022 * a Commercial license. * 00023 * * 00024 * See RESTRICTIONS.TXT for extra restrictions on the use of FullFAT. * 00025 * * 00026 * Removing the above notice is illegal and will invalidate this license. * 00027 ***************************************************************************** 00028 * See http://worm.me.uk/fullfat for more information. * 00029 * Or http://fullfat.googlecode.com/ for latest releases and the wiki. * 00030 *****************************************************************************/ 00031 #ifndef _FAT_H_ 00032 #define _FAT_H_ 00033 00034 /* 00035 This file defines offsets to various data for the FAT specification. 00036 */ 00037 00038 // MBR / PBR Offsets 00039 00040 #define FF_FAT_BYTES_PER_SECTOR 0x00B 00041 #define FF_FAT_SECTORS_PER_CLUS 0x00D 00042 #define FF_FAT_RESERVED_SECTORS 0x00E 00043 #define FF_FAT_NUMBER_OF_FATS 0x010 00044 #define FF_FAT_ROOT_ENTRY_COUNT 0x011 00045 #define FF_FAT_16_TOTAL_SECTORS 0x013 00046 #define FF_FAT_32_TOTAL_SECTORS 0x020 00047 #define FF_FAT_16_SECTORS_PER_FAT 0x016 00048 #define FF_FAT_32_SECTORS_PER_FAT 0x024 00049 #define FF_FAT_ROOT_DIR_CLUSTER 0x02C 00050 00051 #define FF_FAT_PTBL 0x1BE 00052 #define FF_FAT_PTBL_LBA 0x008 00053 00054 #define FF_FAT_DELETED 0xE5 00055 00056 // Directory Entry Offsets 00057 #define FF_FAT_DIRENT_SHORTNAME 0x000 00058 #define FF_FAT_DIRENT_ATTRIB 0x00B 00059 #define FF_FAT_DIRENT_CREATE_TIME 0x00E ///< Creation Time. 00060 #define FF_FAT_DIRENT_CREATE_DATE 0x010 ///< Creation Date. 00061 #define FF_FAT_DIRENT_LASTACC_DATE 0x012 ///< Date of Last Access. 00062 #define FF_FAT_DIRENT_CLUS_HIGH 0x014 00063 #define FF_FAT_DIRENT_LASTMOD_TIME 0x016 ///< Time of Last modification. 00064 #define FF_FAT_DIRENT_LASTMOD_DATE 0x018 ///< Date of Last modification. 00065 #define FF_FAT_DIRENT_CLUS_LOW 0x01A 00066 #define FF_FAT_DIRENT_FILESIZE 0x01C 00067 #define FF_FAT_LFN_ORD 0x000 00068 #define FF_FAT_LFN_NAME_1 0x001 00069 #define FF_FAT_LFN_CHECKSUM 0x00D 00070 #define FF_FAT_LFN_NAME_2 0x00E 00071 #define FF_FAT_LFN_NAME_3 0x01C 00072 00073 // Dirent Attributes 00074 #define FF_FAT_ATTR_READONLY 0x01 00075 #define FF_FAT_ATTR_HIDDEN 0x02 00076 #define FF_FAT_ATTR_SYSTEM 0x04 00077 #define FF_FAT_ATTR_VOLID 0x08 00078 #define FF_FAT_ATTR_DIR 0x10 00079 #define FF_FAT_ATTR_ARCHIVE 0x20 00080 #define FF_FAT_ATTR_LFN 0x0F 00081 00082 #endif 00083 Generated on Sat May 26 2012 04:17:51 for ReactOS by
1.7.6.1
|