NETRESOURCE (Structures)
Last changed: 98.213.119.236

.
Summary
Contains information about a network resource.

C# Definition:

[StructLayout(LayoutKind.Sequential)]

class NETRESOURCE

{    
   public int dwScope;    
   public int dwType;
   public int dwDisplayType;    
   public int dwUsage;    
   public string LocalName;    
   public string RemoteName;    
   public string Comment;    
   public string Provider;
}

Notes:

Without the Structlayout the WNetAddConnection2 does not work !!!

This is defined as a class rather than a structure, so it's only appropriate for passing (by-value) when a pointer to a structure is needed.

Documentation
NETRESOURCE on MSDN