Function 21, subfunction 8 - set used HD partition.
The HD partition defines partition of the hard disk to write with
usage of obsolete syntax /HD and obsolete function 58;
at usage of functions 58 and 70 and modern syntax /HD0,/HD1,/HD2,/HD3
base and partition are set automatically.
Parameters:
- eax = 21 - function number
- ebx = 8 - subfunction number
- ecx = HD partition (beginning from 1)
Return value:
Remarks:
- Any application at any time can change partition.
- Do not change partition when any application works with hard disk.
If you do not want system bugs.
- To get used partition use subfunction 8 of function 26.
- There is no correctness checks.
- To get the number of partitions of a hard disk use
subfunction 11 of function 18.
- It is also necessary to define used HD base by subfunction 7.