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 » QueryModeSense

NAME

    QueryModeSense

SYNOPSIS

     success = QueryModeSense ( page, msbsize, msbuf, errorcode )
D0 D0 D1 A0 A1
BOOL QueryModeSense ( int page, int msbsize, BYTE *msbuf, int *errorcode )

FUNCTION

    Read Mode Sense pages from the currently opened device. This can be used
to determine special characteristics about the device.

INPUTS

    page       int containing the "PC" and "page" code for the page(s)
requested.
msbsize int containing the size of the buffer passed to the function.
msbuf Pointer to a BYTE array of msbsize BYTEs or more.
errorcode Poinmter to an integer error code containing the DoIO command
results.

RESULT

    success    BOOL set TRUE if data contained within msbuf is valid.
msbuf filled with data to msbsize requested from drive.

NOTES

    Refer to the appropriate version of the SCSI specification to determine
the value for the value in page.

BUGS

SEE ALSO

hdwrench.library/QueryCapacity(), hdwrench.library/QueryFindValid(), hdwrench.library/QueryInquiry(), 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:

Abyss

HZ
DJ
PDX
AYS

Comments:

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