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

SHARE_INFO_2 (Structures)
 
.
Summary
TODO - a short description

C# Definition:

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public struct SHARE_INFO_2
    {
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi2_netname;
        public uint shi2_type;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi2_remark;
        public uint shi2_permissions;
        public uint shi2_max_uses;
        public uint shi2_current_uses;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi2_path;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi2_passwd;
    }

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
struct SHARE_INFO_2
{
    public string shi2_netname;
    [MarshalAs(UnmanagedType.U4)]
    public int shi2_type;
    public string shi2_remark;
    [MarshalAs(UnmanagedType.U4)]
    public int shi2_permissions;
    [MarshalAs(UnmanagedType.U4)]
    public int shi2_max_uses;
    [MarshalAs(UnmanagedType.U4)]
    public int shi2_current_uses;
    public string shi2_path;
    public string shi2_passwd;
}

VB Definition:

    Private Structure SHARE_INFO_2

<StructLayout(LayoutKind.Sequential)> Structure SHARE_INFO_2

    <MarshalAs(UnmanagedType.LPWStr)> Dim shi2_netname As String
    Dim shi2_type As Integer
    <MarshalAs(UnmanagedType.LPWStr)> Dim shi2_remark As String
    Dim shi2_permissions As Integer
    Dim shi2_max_uses As Integer
    Dim shi2_current_uses As Integer
    <MarshalAs(UnmanagedType.LPWStr)> Dim shi2_path As String
    <MarshalAs(UnmanagedType.LPWStr)> Dim shi2_passwd As String
    End Structure

End Structure

User-Defined Field Types:

None.

Notes:

[2004-06-11 Ray Ackley]
Added VB definition

[2004-06-03 Nicholas Paldino]
Fixed typo.
[2012-08-02]
Corrected Struct against msdn http://msdn.microsoft.com/en-us/library/windows/desktop/bb525408(v=vs.85).aspx

Documentation

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