Retrieves the name of the network resource associated with a local device
#include <WinNet.au3>
_WinNet_GetConnection ( $sLocalName )
$sLocalName | The name of the local device to get the network name for |
Success: | the remote name used to make the connection. |
Failure: | sets the @error flag to non-zero. |
Search WNetGetConnection in MSDN Library.