News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Program for getting the disk status

Started by Kalyan, Apr 06, 2008, 06:23 PM

Previous topic - Next topic

Kalyan

Program for getting the disk status

#include<stdio.h>
#include<conio.h>
#include<dos.h>

void main(void)
{
clrscr();
union REGS regs;
regs.h.ah = 1;
regs.h.dl = 0x80;
int86(0x13,&regs,&regs);
printf("\nIf successful operation then AH & AL register resets.");
printf("\nAH register - %d",regs.h.ah);
printf("\nAL register - %d",regs.h.al);
printf("\nSuccessful Operation.");
getch();
}