Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network or local drive

Status
Not open for further replies.

labnotes

Technical User
Sep 1, 2003
33
CA
When I access a drive using C or C++ on a windows machine can I determine
if it is a local or network drive? If so how.

Thanks and have a great day
 
Use
UINT GetDriveType(
LPCTSTR lpRootPathName
);

Network Drive is a return value of "DRIVE_REMOTE".

Other return values are listed, check in the online help for your specifics.

hth,

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top