• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Tape detection in tapedrive

How can we write a little routine that checks if a tape is in the drive for a NT 4.0, without hanging of course.
1 Solution
bruneelAuthor Commented:
Edited text of question.
Use 'DeviceIoControl()' and supply 'IOCTL_STORAGE_CHECK_VERIFY' as the control code. This operation determines whether a device’s media is accessible; for example, whether the media is in the device (return value == TRUE).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now