The NETRESOURCE structure is returned during enumeration of resources on the network and during enumeration of currently connected resources.
typedef struct _NETRESOURCE { // nr DWORD dwScope; DWORD dwType; DWORD dwDisplayType; DWORD dwUsage; LPTSTR lpLocalName; LPTSTR lpRemoteName; LPTSTR lpComment; LPTSTR lpProvider; } NETRESOURCE;
Value |
Meaning |
RESOURCE_CONNECTED |
Currently connected resources (the dwUsage member is undefined). |
RESOURCE_GLOBALNET |
Resources on the network. |
RESOURCE_REMEMBERED |
Remembered (persistent) connections (dwUsage is undefined). |
Value |
Meaning |
RESOURCETYPE_ANY |
All resources |
RESOURCETYPE_DISK |
Disk resources |
RESOURCETYPE_PRINT |
Print resources |
Value |
Meaning |
RESOURCEDISPLAYTYPE_DOMAIN | |
The object should be displayed as a domain. | |
RESOURCEDISPLAYTYPE_GENERIC | |
The method used to display the object does not matter. | |
RESOURCEDISPLAYTYPE_SERVER | |
The object should be displayed as a server. | |
RESOURCEDISPLAYTYPE_SHARE | |
The object should be displayed as a sharepoint. |
Value |
Meaning |
RESOURCEUSAGE_CONNECTABLE |
This is a connectable resource; the name pointed to by the lpRemoteName member can be passed to the WNetAddConnection function to make a network connection. |
RESOURCEUSAGE_CONTAINER |
This is a container resource; the name pointed to by the lpRemoteName member can be passed to the WNetOpenEnum function to enumerate the resources in the container. |
If the entry is a current or persistent connection, lpRemoteName points
to the network name associated with the name pointed to by the lpLocalName
member.
WNetAddConnection, WNetCloseEnum, WNetEnumResource, WNetOpenEnum
file: /Techref/os/win/api/win32/struc/src/str12_15.htm, 6KB, , updated: 2000/4/7 11:20, local time: 2024/11/7 14:30,
18.226.98.161:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/struc/src/str12_15.htm"> NETRESOURCE</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.