ConceptHMI Web Help
NetShareEnum(String,Int32,IntPtr,Int32,Int32,Int32,Int32) Method
Name of the lp server.
The dw level.
The lp buffer.
The dw pref max len.
The entries read.
The total entries.
The h resume.
Nets the share enum.
Syntax
[DllImport("netapi32")]
[PreserveSig()]
protected static int NetShareEnum( 
   string lpServerName,
   int dwLevel,
   out IntPtr lpBuffer,
   int dwPrefMaxLen,
   out int entriesRead,
   out int totalEntries,
   ref int hResume
)

Parameters

lpServerName
Name of the lp server.
dwLevel
The dw level.
lpBuffer
The lp buffer.
dwPrefMaxLen
The dw pref max len.
entriesRead
The entries read.
totalEntries
The total entries.
hResume
The h resume.

Return Value

System.Int32.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ShareCollection Class
ShareCollection Members
Overload List

 

 


© 2016 Objectis

Send Feedback