There is one, but it would be better if we didn't have to use native code.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_697p.asp Platform SDK: File Storage QueryDosDevice The QueryDosDevice function retrieves information about MS-DOS device names. The function can obtain the current mapping for a particular MS-DOS device name. The function can also obtain a list of all existing MS-DOS device names. MS-DOS device names are stored as symbolic links in the object name space. The code that converts an MS-DOS path into a corresponding path uses these symbolic links to map MS-DOS devices and drive letters. The QueryDosDevice function enables an application to query the names of the symbolic links used to implement the MS-DOS device namespace as well as the value of each specific symbolic link. DWORD QueryDosDevice( LPCTSTR lpDeviceName, // MS-DOS device name string LPTSTR lpTargetPath, // query results buffer DWORD ucchMax // maximum size of buffer ); --- David Bullock <[EMAIL PROTECTED]> wrote: > What about an API to list DosDevices? Sorry if you already looked. > > cheers, > David. > > On Tue, 8 Jan 2002, Jim Seach wrote: > > > And unfortunately, I also found this: > > > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_697p.asp > > > > Platform SDK: File Storage > > > > DefineDosDevice > > The DefineDosDevice function defines, redefines, or deletes MS-DOS > > device names. > > > > BOOL DefineDosDevice( > > DWORD dwFlags, // options > > LPCTSTR lpDeviceName, // device name > > LPCTSTR lpTargetPath // path string > > ); > > -- > ---- > David Bullock - [EMAIL PROTECTED] +61 4 0290 1228 > http://www.lisasoft.com/ (Architect) http://www.auug.org.au/ > (President, SA) > http://www.ajug.org.au/sajug/sa.html (Activist) Sun Cert'd Programmer > for Java 2 > > "The key ingredients of success are a crystal-clear goal, a realistic > attack plan to achieve that goal, and consistent, daily action to > reach that goal." > Steve Maguire, "Debugging the Development Process". > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>