netsharegetinfo

C# Signature:

[DllImport("Netapi32.dll", SetLastError=true)]
public static extern int NetShareGetInfo(
    [MarshalAs(UnmanagedType.LPWStr)] string serverName,
    [MarshalAs(UnmanagedType.LPWStr)] string netName,
    Int32 level,
    out IntPtr bufPtr );

VB Signature:

Declare Unicode Function NetShareGetInfo Lib "netapi32.dll" _
            (ByVal ServerName As String, _
            ByVal ShareName As String, _
            ByVal Level As Integer, _
            ByRef BufPtr As IntPtr) As Integer

Notes:

[2004-06-11]
VB Def added by RACKLEY

[2004-09-03]
VB.NET Code added from Ralph Mallamace based on conversions from VB code on other sites

[2007-09-20]
Corrected VB Signature 'ByVal Level As Long' --> 'ByVal Level as Integer', format tidy.

Sample Code:

Sample Code:

Sample Code:

Sample Code:

Sample Code:

The following is a C# example; much the same as above. For questions comments feel free to mail mailto:wshore@dstoutput.ca

The following is a C# example; much the same as above. For questions comments feel free to mail mailto:wshore@dstoutput.ca

Alternative Managed API:

Alternative Managed API:

Última actualización