SHARE_INFO_502 (Structures)
Last changed: xmlmaster@gmail.com-131.107.0.72

.
Summary

This Enumeration is useful for all the NetShareGetInfo calls such as follows

IntPtr bufptr = IntPtr.Zero;
        int err;
        IntPtr ptr = IntPtr.Zero;
        int output = NetShareGetInfo("<ServerName>", @"<ShareName>", 502, out ptr);
        SHARE_INFO_502 shareInfo = (SHARE_INFO_502)Marshal.PtrToStructure(ptr, typeof(SHARE_INFO_502));

C# Definition:

  [StructLayout(LayoutKind.Sequential)]
    public struct SHARE_INFO_502
    {
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi502_netname;
        public uint shi502_type;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi502_remark;
        public Int32 shi502_permissions;
        public Int32 shi502_max_uses;
        public Int32 shi502_current_uses;
        [MarshalAs(UnmanagedType.LPWStr)]
        public string shi502_path;
        public IntPtr shi502_passwd;
        public Int32 shi502_reserved;
        public IntPtr shi502_security_descriptor;
    }

VB Definition:

Structure SHARE_INFO_502
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

See also ShareType enum.

Documentation