RE: How can I get the available drive letter?

I am assuming you are calling IoCreateSymbolicLink API to reserve the drive
letter.
In that case this API will fail if the passed in drive letter is already
taken.
You just have to right a code that enumerates all drive letters and calls
IoCreateSymbolicLink until it succeeds.

-Ilya.

-----Original Message-----
From: yuan3rd [mailto:xxxxx@21cn.com]
Sent: Thursday, January 24, 2002 8:17 PM
To: NT Developers Interest List
Subject: [ntdev] How can I get the available drive letter?

Hi , all!
I am writing a CD-ROM- simulation. Now I have a problem, how can I get the
available drive letter for my own simulated-CD ROM?
That is , if the system is using C: D: E: and I want to use F:, how can I
know I should use F:?

(sorry for repeating this message, it’s due to my wrong system clock)


You are currently subscribed to ntdev as: xxxxx@softricity.com
To unsubscribe send a blank email to %%email.unsub%%