hi
I have to made a program which read all blocks of hard disk and after reading give me hard disk capacity and its bad block i C language. Kindly tell me how can i read hard disk blocks and how i can know this block is bad or ok

Thanks

Recommended Answers

All 3 Replies

I'm pretty sure you will have to write kernel-level program to do that. Here is a tutorial to help get started with the Windows DDK

IOCTL is another possibility

commented: Nice Link +4

No I just want to make a C Simple Program using interrupts or bios services

No I just want to make a C Simple Program using interrupts or bios services

Not in MS-Windows or *nix you won't because the operating systems will not allow it. You might, however, use an old MS-DOS compiler such as TurboC with inline assembly code, but you will probably have problems with today's huge hard drives.

There is no simple solution to your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.