Haven't tested this but should return a lot of info about network resources including domain name..
Private Declare Function WNetEnumResource Lib "mpr.dll" Alias "WNetEnumResourceA" (ByVal hEnum As Long, lpcCount As Long, lpBuffer As NETRESOURCE, lpBufferSize As Long) As Long
[sig] <br>
<br>
<br>
********Byte me ********[/sig]