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

NAME

    HDWOpenDevice

SYNOPSIS

    success = HDWOpenDevice ( TheDevName, unit )
D0 A0 D0
BOOL = HDWOpenDevice ( char *TheDevName, ULONG unit )

FUNCTION

    HDWOpenDevice is called to open a SCSI Direct responding device within
the hdwrench.library environment. It must be used before any of the
other entry points that require a device be open such as QueryCapacity().
Conversely it must not be used unless followed by a HDWCloseDevice() for
the entry points that require no device be opened for their successful
function.

INPUTS

    TheDevName  Pointer to a C String containing the device name.
unit ULONG containing the unit number to open.

RESULT

    success     BOOL success or failure. TRUE means a device was opened.

NOTES

    Please see the unit number discussion in the header comments for
"include:devices/scsidisk.h".
Note that a successful return does not necessarily mean this is a device
that listens to SCSI Direct commands. A "QueryReady()" command should
be used to determine if the device is ready to respond to commands.

BUGS

    Does not (yet) respond to any possible NSDPatch indications of device
driver type. Be careful with it.

SEE ALSO

hdwrench.library/HDWOpenDevice()

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:

Horizon

HZ
TBL
SCX
CSL

Comments:

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