@msdn=https://msdn.microsoft.com/en-us/library/windows/desktop/aa385353(v=vs.85).aspx @pinvoke=http://pinvoke.net/$$$.htm Summary: Contains information about a network resource. !!!!C# Definition: [StructLayout(LayoutKind.Sequential)] public class NetResource { public ResourceScope dwScope; public ResourceType dwType; public ResourceDisplayType dwDisplayType; public ResourceUsage dwUsage; public string lpLocalName; public string lpRemoteName; public string lpComment; public string lpProvider; } !!!!VB.Net Definition: <StructLayout(LayoutKind.Sequential)> _ Public Class NetResource Public dwScope As ResourceScope Public dwType As ResourceType Public dwDisplayType As ResourceDisplayType Public dwUsage As ResourceUsage Public lpLocalName As String Public lpRemoteName As String Public lpComment As String Public lpProvider As String End Class !!!!User-Defined Types: ResourceScope, ResourceType, ResourceDisplayType, ResourceUsage !!!!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@msdn on MSDN
Edit Structures.NETRES...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.