Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>dos_abs_disk_write</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dos_abs_disk_write
   Note-This function is not available under the DOSX extender.

Usage

   #include <dos.h>
   int dos_abs_disk_write(int drive,int num_sec,
                          int start_sec,char *buffer):

Description

   Transfer control directly to BIOS to perform the disk write. The drive is
   a 0 for A:, 1 for B: and so on up to 25. The number of sectors to write
   is specified in num_sec. start_sec defines the first sector for

   operation. Buffer is the source memory address for the operation. This
   function will work correctly under MS-DOS 4.x.

   Writing to a disk using this function could cause irretrievable loss of
   data, and may damage the file structure of the disk. For this reason no
   example is given. You should only use this function if you are fully
   conversant with the organization of MS-DOS disks and their associated
   file structures.

Return Value

   Returns a 0 on success. A non-zero return value indicates an error. The
   lower byte will contain the DOS error code. The higher byte will contain
   the specific BIOS error. See dos_abs_disk_read for details of these error
   codes.

See Also

   DOS package, dos_abs_disk_read




See Also: dos_abs_disk_read

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson