a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 hdwrench.library
  FindControllerID
  FindDefaults
  FindDiskName
  FindLastSector
  HDWCloseDevice
  HDWOpenDevice
  InMemMountfile
  InMemRDBStructs
  LowlevelFormat
  OutMemMountfile
  OutMemRDBStructs
  QueryCapacity
  QueryFindValid
  QueryInquiry
  QueryModeSense
  QueryReady
  RawRead
  RawWrite
  ReadMountfile
  ReadRDBStructs
  ReadRDBs
  VerifyDrive
  WriteBlock
  WriteMountfile
  WriteRDBStructs
  WriteRDBs
  ZZexample
  description
Include
GuruMeditation
Docs » Autodocs » hdwrench.library » QueryCapacity

NAME

    QueryCapacity

SYNOPSIS

    success = QueryCapacity( totalblocks, blocksize )
D0 A0 A1
BOOL QueryCapacity( ULONG *totalblocks, ULONG *blocksize );

FUNCTION

    Determine the total capacity of the drive in blocks and the individual
block size. Their product is the drive capacity in bytes.

INPUTS

    totalblocks  Pointer to a ULONG that will contain the totalblocks value.
blocksize Pointer to a ULONG that will contain the blocksize value.

RESULT

    success will be TRUE if that values in totalblocks and blocksize are
valid.

BUGS

SEE ALSO

hdwrench.library/FindLastSector(), hdwrench.library/QueryFindValid(), hdwrench.library/QueryInquiry(), hdwrench.library/QueryModeSense(), hdwrench.library/QueryReady()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anthrox

SCX
FC
TRSI
ATX

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se