Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than mpr, prefix the name with the module name and a period.
<DllImport("mpr.dll")> _
Public Shared Function WNetOpenEnum(dwScope As ResourceScope, dwType As ResourceType, dwUsage As ResourceUsage, lpNetResource As NetResource, ByRef lphEnum As IntPtr) As UInteger
Public Shared Function WNetOpenEnum(dwScope As UInteger, dwType As UInteger, dwUsage As UInteger, lpNetResource As NetResource, ByRef lphEnum As IntPtr) As UInteger
End Function
[StructLayout(LayoutKind.Sequential)]
public class NetResource
{
/** Scope */
public const UInt32 RESOURCE_CONNECTED = 0x00000001;
public const UInt32 RESOURCE_GLOBALNET = 0x00000002;
public const UInt32 RESOURCE_REMEMBERED = 0x00000003;
Notes:
None.
/** Type */
public const UInt32 RESOURCETYPE_ANY = 0x00000000;
public const UInt32 RESOURCETYPE_DISK = 0x00000001;
public const UInt32 RESOURCETYPE_PRINT = 0x00000002;
Tips & Tricks:
Please add some!
/** Usage */
public const UInt32 RESOURCEUSAGE_CONNECTABLE = 0x00000001;
public const UInt32 RESOURCEUSAGE_CONTAINER = 0x00000002;
public const UInt32 RESOURCEUSAGE_RESERVED = 0x80000000;
Sample Code:
Please add some!
/** Type */
public const UInt32 RESOURCEDISPLAYTYPE_GENERIC = 0x00000000;
public const UInt32 RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001;
public const UInt32 RESOURCEDISPLAYTYPE_SERVER = 0x00000002;
public const UInt32 RESOURCEDISPLAYTYPE_SHARE = 0x00000003;
public const UInt32 RESOURCEDISPLAYTYPE_FILE = 0x00000004;
public const UInt32 RESOURCEDISPLAYTYPE_GROUP = 0x00000005;
public const UInt32 RESOURCEDISPLAYTYPE_TREE = 0x0000000A;
Alternative Managed API:
TODO
public UInt32 dwScope;
public UInt32 dwType;
public UInt32 dwDisplayType;
public UInt32 dwUsage;
public string lpLocalName;
public string lpRemoteName;
public string lpComment;
public string lpProvider;
}
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
TODO
Click to read this page
10/30/2010 8:09:19 AM - -74.46.16.13
Click to read this page
10/13/2016 2:28:10 AM - -74.46.16.13
The type of resource. This member can be one of the following values defined in the Winnetwk.h header file.
10/13/2016 2:32:15 AM - -91.90.10.220
A set of bit flags describing how the resource can be used.Note that this member can be specified only if the dwScope member is equal to RESOURCE_GLOBALNET. This member can be one of the following values defined in the Winnetwk.h header file.
10/13/2016 2:34:22 AM - -91.90.10.220
Contains information about a network resource.
3/27/2018 7:57:48 PM - 98.213.119.236
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).