[This function is available through Windows XP Service Pack 2 (SP2) and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows. Use GetDriveType or WNetGetConnection instead.]
Tests whether a drive is a network drive.
int IsNetDrive( int iDrive );
An integer that indicates which drive letter you want to test. Set it to 0 for A:, 1 for B:, and so on.
This function returns one of the following values.
||The specified drive is not a network drive.|
||The specified drive is a network drive that is properly connected.|
||The specified drive is a network drive that is disconnected or in an error state.|
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||shlobj_core.h (include Shlobj.h)|
|DLL||Shell32.dll (version 5.0 or later)|