please dont rip this site Prev Next

USE_INFO_2 info  Overview  Group

The USE_INFO_2 structure contains usability information about a remote or shared resource and their associated accounts.

typedef struct _USE_INFO_2 {
LPTSTR ui2_local;
LPTSTR ui2_remote;
LPTSTR ui2_password;
DWORD ui2_status;
DWORD ui2_asg_type;
DWORD ui2_refcount;
DWORD ui2_usecount;
LPTSTR ui2_username;
LPTSTR ui2_domainname;
}USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2;

Members

ui2_local
Specifies a Unicode string that contains the local device name (for example, drive E or LPT1) being redirected to the shared resource. The constant DEVLEN specifies the maximum number of characters in the string.
ui2_remote
Points to a Unicode string that specifies the share name of the remote resource. The string is in the form
\\servername\sharename

 
ui2_password
Points to a Unicode string that contains the password needed to establish a session with a specific workstation.
ui2_status
Specifies the status of the connection. This element is not used by the NetUseAdd function. The following values are defined:

Value

Meaning

USE_OK

The connection is successful.

USE_PAUSED

Paused by a local workstation.

USE_SESSLOST

The connection is connected.

USE_DISCONN

An error occurred.

USE_NETERR

A network error occurred.

USE_CONN

The connection is being made.

SE_RECONN

Reconnecting.

ui2_asg_type
Contains values that determine several features. This member can be any of the following values:

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 ui2_local member is a null string.

USE_DISKDEV

Disk device.

USE_SPOOLDEV

Spooled printer.

USE_CHARDEV

Communication device.

USE_IPC

Interprocess communication (IPC).

ui2_refcount
Specifies the number of files, directories, and other processes that are open on the remote resource. This element is not used by the NetUseAdd function.
ui2_usecount
Specifies the number of explicit connections (redirection with a local device name) or implicit UNC connections (redirection without a local device name) that are established with the resource.
ui2_username
Specifies the name of user in the domain.
ui2_domainname
Specifies the domain of the resource.

See Also

NetUseAdd, NetUserEnum, NetUseGetInfo

See also:


file: /Techref/os/win/api/win32/struc/src/str22_19.htm, 5KB, , updated: 2002/2/23 01:51, local time: 2022/5/22 00:57,
TOP NEW HELP FIND: 
44.192.25.113:LOG IN

 ©2022 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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/os/win/api/win32/struc/src/str22_19.htm"> USE_INFO_2</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2022 contributors:
o List host: MIT, Site host massmind.org, Top posters @20220522
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .