HDD reading with LBA address.

This is a discussion on HDD reading with LBA address. within the Windows Programming forums, part of the Platform Specific Boards category; Hello. Is there a function that can allow us to read/write a sector from an HDD with LBA mode? I ...

  1. #1
    question.
    Guest

    HDD reading with LBA address.

    Hello.

    Is there a function that can allow us to read/write a sector
    from an HDD with LBA mode? I am using microsoft VisualC.

    example.

    void ReadSector ( unsigned long LBA_ADDRESS ) ;

    Thanks.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,676
    You'll can use DeviceIoControl() and CreateFile() (read down to "Physical Disks and Volumes") to do low-level disk stuff. Otherwise, you'll have to do low-level INT13h programming.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory leaks problem in C -- Help please
    By Amely in forum C Programming
    Replies: 14
    Last Post: 05-21-2008, 11:16 AM
  2. import address table (IAT)
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 02-20-2008, 07:01 AM
  3. Memory Address
    By Stack Overflow in forum C Programming
    Replies: 5
    Last Post: 05-25-2004, 11:43 AM
  4. Pointer address
    By cheeves in forum C Programming
    Replies: 7
    Last Post: 10-30-2003, 07:26 PM
  5. reading hexadecimal variables
    By juhigarg in forum C++ Programming
    Replies: 7
    Last Post: 11-06-2001, 10:10 PM

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