General information
Category:
Windows API functions
José-
>This API function queries the mapped drive and supposedly tests the connection. I'm not sure it will force it, but you can give it a try
> DECLARE Long WNetGetConnection in WIN32API;
Thanks for your reply. I expect it doesn't force. Since I want to show a list of available drives, I can't specify the particular mapping.
However, your answer pointed me to the section of the Platform SDK I needed to look in, and it appears that WNetOpenEnum might do it for me, since it appears to return a value for connectable resources.
OTOH, it's probably just going to be easier to loop through all the possible drive letters and do a DIRECTORY(). I was just avoiding what seems to be an inelegant solution.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only