:rolleyes:
I work on Tasm for DOS, and move toward Windows 32 Assembly and I want to know how to Use Interrupts, Get Disk Information (size, type etc.), and sector wise reading and wrting

:alright:
Posted on 2001-11-28 07:10:39 by JayBee
The Drive type can be got with the API GetDriveType.

With GetDiskFreeSpace you can get
1) root path
2) sectors per cluster
3) bytes per sector
4) number of free clusters
5) address of total number of clusters

To use interrupt and read/write single sectors... Hmm... I'm not sure, but I think you should use VXD... Sorry but I do not know anything more about them.

Sincerely,
Daniel
Posted on 2001-11-28 13:43:23 by dguzz
Yessss. In Win32 Assembly interrupts are replaced by API functions.
Posted on 2001-11-28 17:34:52 by CodeLover
JayBee,

For disk info, type, etc. try:

http://www.winsim.com/diskid32/diskid32.html

farrier
Posted on 2001-11-28 19:56:14 by farrier
If you're progressive and thus on a NT-based windows, you can
get access to your drives and partitions with special strings to
CreateFile, without muckign around with VXDs.

To open a harddrive, you'd pass \\.\PHYSICALDRIVE0 to open the
first harddrive. If you want to open partitions, do it like \\.\C: .
Posted on 2001-11-28 19:59:30 by f0dder