I want to enumerate all available drive letters (which aren\'t already taken) in Windows using VC++.
How can I do this?
GetLogicalDrives and GetLogicalDriveStrings are not seeing network drives created in a different namespace.
For example calling the functions from a service running under Local System will not see the network drives created by a logged user.
This is happening starting with Windows XP. The following article describes this case: http://msdn.microsoft.com/en-us/library/windows/desktop/aa363908(v=vs.85).aspx