Einzelnen Beitrag anzeigen

user

Registriert seit: 13. Jul 2010
25 Beiträge
 
Delphi 2 Desktop
 
#1

GetDriveType and DRIVE_REMOTE

  Alt 17. Jan 2011, 04:06
I want to list all networks drives in a PC. My current code to list local drive is GetDriveType. So I look at MSDN.

From MSDN, if the return value of GetDriveType is 4, that means DRIVE_REMOTE (The drive is a remote (network) drive)

The problem is GetDriveType can not retrieve the network drive. Here my way to produce a network drive (Win 7) : Open Network, Select a shared folder and choose map network drive.. then there will be a new drive in Window Explorer.

I know there are another API to list network drive. My question is, Does GetDriveType can not detect mapped network drive? If yes, that means mapped network drive is different with remote (network) drive?
  Mit Zitat antworten Zitat