| Platform SDK: Network Management |
The USE_INFO_1 structure contains information about the connection between a local device and a shared resource. The information includes connection status and connection type.
typedef struct _USE_INFO_1 {
LPWSTR ui1_local;
LPWSTR ui1_remote;
LPWSTR ui1_password;
DWORD ui1_status;
DWORD ui1_asg_type;
DWORD ui1_refcount;
DWORD ui1_usecount;
}USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1;
\\servername\sharename
| Value | Meaning |
|---|---|
| USE_OK | The connection is valid. |
| USE_PAUSED | Paused by local workstation. |
| USE_SESSLOST | Disconnected. |
| USE_DISCONN | An error occurred. |
| USE_NETERR | A network error occurred. |
| USE_CONN | The connection is being made. |
| USE_RECONN | Reconnecting. |
| Value | Meaning |
|---|---|
| USE_WILDCARD | Matches the type of the server's shared resources. Wildcards can be used only with the NetUseAdd function, and only when the ui1_local member is a null string. For more information, see the following Remarks section. |
| USE_DISKDEV | Disk device. |
| USE_SPOOLDEV | Spooled printer. |
| USE_IPC | Interprocess communication (IPC). |
Specifying a NULL ui1_local member requests authentication with the server without redirecting a drive letter or a device. Future redirections involving the server while the same connection is in effect use the password specified by the ui1_password member in the initial call to the NetUseAdd function.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Unsupported.
Header: Declared in Lmuse.h.
Network Management Overview, Network Management Structures, Use Functions, NetUseAdd, NetUseEnum, NetUseGetInfo