Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Available Drives
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00841069
Message ID:
00998659
Views:
35
In addition:

The WNetGetConnection function retrieves the name of the network resource associated with a local device.
DECLARE INTEGER WNetGetConnection IN mpr;
	STRING lpLocalName, STRING @lpRemoteName,;
	INTEGER @lpnLen

LOCAL cBuffer, nBufsize
nBufsize = 260
cBuffer = REPLICATE(Chr(0), m.nBufsize)

IF WNetGetConnection("z:", @cBuffer, @nBufsize) = 0
	? "Network resource:", LEFT(m.cBuffer, m.nBufsize)
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform