# Function Reference

# _WinNet_GetConnection

Retrieves the name of the network resource associated with a local device

#include <WinNet.au3>
_WinNet_GetConnection ( $sLocalName )

## Parameters

$sLocalName | The name of the local device to get the network name for

## Return Value

Success: | the remote name used to make the connection.
Failure: | sets the @error flag to non-zero.

## See Also

Search WNetGetConnection in MSDN Library.