Docs » Autodocs » hdwrench.library » QueryCapacity
QueryCapacity
success = QueryCapacity( totalblocks, blocksize ) D0 A0 A1 BOOL QueryCapacity( ULONG *totalblocks, ULONG *blocksize );
Determine the total capacity of the drive in blocks and the individual block size. Their product is the drive capacity in bytes.
totalblocks Pointer to a ULONG that will contain the totalblocks value. blocksize Pointer to a ULONG that will contain the blocksize value.
success will be TRUE if that values in totalblocks and blocksize are valid.
hdwrench.library/FindLastSector(), hdwrench.library/QueryFindValid(), hdwrench.library/QueryInquiry(), hdwrench.library/QueryModeSense(), hdwrench.library/QueryReady()
|