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++ Language Reference - dos_abs_disk_write http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                            dos_abs_disk_write

   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.

   Example
   WARNING   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  MSDOS
   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.  These  dos_abs_disk_read  for
   details of these error codes.


See Also: DOS_Package dos_abs_disk_read

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