🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer.misc
1 messages
1 total messages Started by kbennett Fri, 27 Dec 1996 00:00
In C/C++, how to determine if a drive is removable?
#155
Author: kbennett
Date: Fri, 27 Dec 1996 00:00
11 lines
1456 bytes
Does anyone have any specific example code to determine whether or not a drive is removable?  I'd need to be able to use it even if there were no media in the drive.  Does such a thing exist?

Someone mentioned DosDevIOCtl() with a Category 8 and Function 20H, but according to the sparce online docs, this function needs to be called with a handle.  Does this mean a handle of a file or device which has already been opened?  If so, this would not meet my needs since it needs to work even without any media in the drive.

Thanks for any help on this.

- Keith

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads