1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-07-31 16:06:05 +00:00
rufus/src/ms-sys/inc/fat16.h
Pete Batard 573ea45640 [core] add support for bare ReactOS boot record installation
* A new "ReactOS" is now available under "Create a bootable disk" when running in advanced mode.
* Using this option will install the ReactOS bootblocks (MBR & FAT PBR) _only_.
  You can then copy freeldr.sys and freeldr.ini to make the drive bootable.
* Also move Rufus MBR installation to ms-sys, and remove mbr.bin resource.
* Also add Rufus MBR detection, remove duplicate records and display MBR type on drive detection
* Also move PBR and MBR analysis calls to drive.c and add a drive.h header
* Also make extraction of embedded loc file more robust
2014-01-05 01:39:41 +00:00

42 lines
1.5 KiB
C

#ifndef FAT16_H
#define FAT16_H
#include <stdio.h>
/* returns TRUE if the file has a FAT16 file system, otherwise FALSE.
The file position will change when this function is called! */
int is_fat_16_fs(FILE *fp);
/* returns TRUE if the file has a FAT16 boot record, otherwise FALSE.
The file position will change when this function is called! */
int is_fat_16_br(FILE *fp);
/* returns TRUE if the file has an exact match of the FAT16 boot record this
program would create, otherwise FALSE.
The file position will change when this function is called! */
int entire_fat_16_br_matches(FILE *fp);
/* Writes a FAT16 boot record to a file, returns TRUE on success, otherwise
FALSE */
int write_fat_16_br(FILE *fp, int bKeepLabel);
/* returns TRUE if the file has an exact match of the FAT16 boot record this
program would create for FreeDOS, otherwise FALSE.
The file position will change when this function is called! */
int entire_fat_16_fd_br_matches(FILE *fp);
/* Writes a FAT16 FreeDOS boot record to a file, returns TRUE on success,
otherwise FALSE */
int write_fat_16_fd_br(FILE *fp, int bKeepLabel);
/* returns TRUE if the file has an exact match of the FAT16 boot record this
program would create for ReactOS, otherwise FALSE.
The file position will change when this function is called! */
int entire_fat_16_ros_br_matches(FILE *fp);
/* Writes a FAT16 ReactOS boot record to a file, returns TRUE on success,
otherwise FALSE */
int write_fat_16_ros_br(FILE *fp, int bKeepLabel);
#endif