次の方法で共有


2.2.5.24 USE_INFO_2

The USE_INFO_2 structure specifies details about the connection between a machine on which the workstation service is running and a shared resource, including user name and domain name.

 typedef struct _USE_INFO_2 {
   USE_INFO_1 ui2_useinfo;
   [string] wchar_t* ui2_username;
   [string] wchar_t* ui2_domainname;
 } USE_INFO_2,
  *PUSE_INFO_2,
  *LPUSE_INFO_2;

ui2_useinfo: A pointer to the USE_INFO_1 structure (section 2.2.5.23) that the method returns.

ui2_username: A pointer to a string that contains the name of the user who initiated the connection.

ui2_domainname: A pointer to a string that contains the domain name of the remote resource.