Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
SHARE_INFO_502 (Structures)
.
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;
}
[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
Gets information about a single share. BufPtr points to a SHARE_INFO_2 structure. See NetShareEnum for example code of how to convert this to a usable structure.
10/15/2008 6:28:26 AM - egottwald@harrisinteractive.com-64.128.186.241
Defines the values of the Type field for the SHARE_INFO_2 struct
2/8/2012 7:41:03 AM - -198.240.128.75
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.