absread and abswrite Functions read/write operation on the entire disk The absread function reads absolute disk sectors and the abswrite function writes absolute disk sectors

Data Recovery PRO DATA DOCTOR

Home | Order Online | Downloads | Contact Us | Software Knowledgebase

it | es | pt | fr | de | jp | kr | cn | ru | nl | gr


absread and abswrite Functions

These Functions have been defined in Dos.h. The absread function reads absolute disk sectors and the abswrite function writes absolute disk sectors. The function absread uses DOS interrupt 0x25 to read specific disk sectors and the function abswrite uses DOS interrupt 0x26 to write specific disk sectors.

Absolute read or write operations proceeds in sequential manner by incrementing sector(s) step by step and are completely free of the head and track numbers etc. it is the job of BIOS of the computer to translate the absolute sectors to the respective track, Head and Sector numbers.

Absolute read and write operations are recommended in such programs where we are going to perform read/write operation on the entire disk and we want to avoid extra coding and looping in our program to increase the speed of the program to fastest.

Both of the functions absread and abswrite, ignore the logical structure of a disk and pay no attention to files, FATs, or directories. These functions directly perform absolute read and absolute write operation on the surface of the disk, This is the reason that if used improperly, abswrite can overwrite files, directories, and FATs.

The declaration of the absread function is as follows:

int absread(int drive, int nsects, long lsect,
void *buffer);

and the abswrite function is declared as follows:

int abswrite(int drive, int nsects, long lsect,
void *buffer);

Where the meaning of parameters is as follows:

Param.

What It Is/Does

drive

Drive number to read (or write): 0 = A, 1 = B, etc.

nsects

Number of sectors to read (or write)

lsect

Beginning logical sector number

buffer

Memory address where the data is to be read (or written)

On success, both of the functions return 0. When there is any error, both return -1 and set error no. to the value of the AX register returned by the system call.

The number of sectors for read or write operation is limited to 64K or the size of the buffer, whichever is smaller. However we will learn the use of Huge memory in next chapters to exceed out of the memory limit 64K, to develop a very fast program.

Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi
Data Recovery with & without Programming


Publishers of the Book
Number of Pages
ISBN
Price of the Book


BPB Publications, New Delhi, India
540
81-7656-922-4
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)





Buy Data recovery Book

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20


page 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38

Next page
Data recovery software
Windows Data Recovery Software
iPod Data Recovery Software
Memory Card Data Recovery Software
Pen Drive Data Recovery Software
Digital Camera Data Recovery Software
Removable Media Data Recovery Software

FAT Data Recovery Software

NTFS Data Recovery Software

Data recovery Education center
Data Recovery Training
Data Recovery Services
Data Recovery Education Materials
Data Recovery Book


Software development services
Custom Software Development
Offshore Software Development
Microsoft .NET Development
Java / J2EE Development
Wireless / Mobile Application Development
Database Solutions

© Copyright 2002-2005 DataDoctor.Biz

Pen Drive Data Recovery Software | Memory Card Data Recovery Software | iPod Data Recovery Software | Digital Camera Data Recovery Software | Removable Media Data Recovery Software | Windows Data Recovery Software | FAT Data Recovery Software | NTFS Data Recovery Software | Data Recovery Training | Data Recovery Services | Data Recovery Education Material | Data Recovery Book | Custom Software Development | Offshore Software Development | Microsoft .NET Development | Java / J2EE Development | Wireless / Mobile Application Development | Database Solutions | Website Design | Website Development | Website Promotion | Mobile Website Design | Website Testing | Graphic Design

Home | Contact us | Downloads | Services | Terms and conditions | Site map

Website Data Recovery | recuperación de Datos | Récupération de données | Datenrettung | Recupero dati | データ復旧 | 데이터 복구 | 数据恢复 | Восстановление данных | De terugwinning van gegevens | Ανάκτηση δεδομένων
Sitemap Site map1 2 3 4 | Spanish1 2 3 | French1 2 3 | German1 2 3 | Italian1 2 3 | Portuguese1 2 3 | Japanese1 2 3 | Korean1 2 3 | Chinese1 2 3 | Russian1 2 3 | Dutch1 2 3 | Greek1 2 3
Data Recovery Book English | Spanish | French | German | Italian | Portuguese | Japanese | Korean | Chinese | Russian | Dutch | Greek