: : : Hi all...
: : :
: : : I am trying to write a windows program that will access file systems not supported by windows (eg linux ext3).
: : : I need to know how to get the hard disk partitions info (size, location, ...) and i also need a function that can read sectors from the hard disk (raw SECTORS, not FILES) under WINNT.
: : :
: : : Note: This is a WINDOWS application. I can't use 'absread' which is a DOS function.
: : :
: : : Can you guys help me?
: : :
: : : Thanks.
: : :
: : This is easier in dos...
: :
: : You'll need to make a driver or something that has high enough previliges to access the bios interupts.
: :
: : Since you maybe want to use it as a device, like D:, a driver should be what you want.
: :
:
: Try looking at the Explore2fs source code:
:
http://www.chrysocome.net/explore2fs
:
: The DiskIO 2 program is a 16-bit DLL, that has the low-level code needed to do this. It uses DPMI(DOS Protected Mode Interface) to call real mode interrupts(int 13h mainly) from protected mode. With DPMI you don`t need to make a driver. Calling 16-bit DLLs is different from 32-bit ones, so check the Explore2fs code to understand how to call them.
:
: This is much easier to do in DOS, as IDK said, because in DOS, you can call interrupt 13h directly.
:
That is great... But I am quite sure that this can be done under windows, and I know a couple of programs that do. PartitionMagic, for example, can not only access the hard disk, but can also modify and resize hard disk partitions. There's got to be some way!