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_502 (Structures)
 
.
Summary

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

Summary
TODO - a short description

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;
    }

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
struct SHARE_INFO_502
{
    public string shi502_netname;
    [MarshalAs(UnmanagedType.U4)]
    public ShareType shi502_type;
    public string shi502_remark;
    [MarshalAs(UnmanagedType.U4)]
    public int shi502_permissions;        // used w/ share level security only
    [MarshalAs(UnmanagedType.U4)]
    public int shi502_max_uses;
    [MarshalAs(UnmanagedType.U4)]
    public int shi502_current_uses;
    public string shi502_path;
    public string shi502_passwd;        // used w/ share level security only
    [MarshalAs(UnmanagedType.U4)]
    public int 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.

None.

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