DOS_CODE module routines

Company Information Software Products TDF Market Reports Download Area take me Home

DOS_CODE.C

This module contains various low level DOS disk interface routines. Warning - routines in this module can fetch things that if written back to disk - Could (and if Murphy has anything to say about it WILL) mung things up VERY bad. So don't write these back unless you know what you are doing. Ok you been warned, it's your foot.

Function load_disk_boot_record
Include file DOS_CODE.H
Prototype void load_disk_boot_record( int drive )
Remarks Load the boot record for the requested drive and calc the start of the root directory. Drive is absolute drive number (not logical).

Function get_logical_sector_number
Include file DOS_CODE.H
Prototype UINT get_logical_sector_number( UINT cluster )
Remarks Convert disk cluster number into logical sector numbers.

Function get_dir_record
Include file DOS_CODE.H
Prototype DIR_REC *get_dir_record( char *file_name_n_ext , int start_sector , int root_flag )
Remarks This routine will read and search a MSDOS directory file for a target entry. The disk sector of the directory file must be given but the search can be either the root dir or any sub-directory. Sub-directory searchs are limited to the cluster of the directory.

Function load_disk_info_via_ioctl
Include file DOS_CODE.H
Prototype void load_disk_info_via_ioctl( void )
Remarks Use the Int 21 IOCTL get device parameters call to fetch disk info.

Function get_dos_version
Include file DOS_CODE.H
Prototype int get_dos_version( void )
Remarks return XY where X - major , Y - minor version levels.

Function call_int21_get_disk_data
Include file DOS_CODE.H
Prototype void call_int21_get_disk_data( void )
Remarks Call the old Int 21 get disk data function.

Table of Contents Function Index

generated on 08 February 1998 - 14:43:01
© 1998 Tierra del Fuego Ltd.