Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

USE_INFO_2 (Structures)
 
.
Summary
TODO - a short description

C# Definition:

    /// <summary>
    /// USE_INFO_2 Struct for NetUseEnum
    /// </summary>
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public struct USE_INFO_2 {
    /// <summary>A pointer to a 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. This member can be NULL. For more information, see the following Remarks section.</summary>
    public string ui2_local;
    /// <summary>A pointer to a string that contains the share name of the remote resource. The string is in the form \\servername\sharename</summary>
    public string ui2_remote;
    /// <summary>A pointer to a string that contains the password needed to establish a session with a specific workstation.</summary>
    public string ui2_password;
    /// <summary>The status of the connection. This element is not used by the NetUseAdd function. The following values are defined.</summary>
    public int  ui2_status;
    /// <summary>The type of remote resource being accessed. This member can be one of the following values.</summary>
    public int  ui2_asg_type;
    /// <summary>The number of files, directories, and other processes that are open on the remote resource. This element is not used by the NetUseAdd function.</summary>
    public int  ui2_refcount;
    /// <summary>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.</summary>
    public int  ui2_usecount;
    /// <summary>A pointer to a string that contains the name of the user who initiated the connection.</summary>
    public string ui2_username;
    /// <summary>A pointer to a string that contains the domain name of the remote resource.</summary>
    public string ui2_domainname;
    }

User-Defined Field Types:

C# Signature:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct USE_INFO_2
{
     internal string ui2_local;
     internal string ui2_remote;
     internal string ui2_password;
     internal UInt32 ui2_status;
     internal UInt32 ui2_asg_type;
     internal UInt32 ui2_refcount;
     internal UInt32 ui2_usecount;
     internal string ui2_username;
     internal string ui2_domainname;
}

VB .NET Signature:

TODO

User-Defined Types:

None.

Notes:

None.

Structrue for NetUseEnum

Tips & Tricks:

Please add some!

Documentation
USE_INFO_2 @msdn on MSDN

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation
USE_INFO_2 on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions