NetShareAdd (comdlg32)
Last changed: -216.108.206.103

.
Summary
TODO - a short description

C# Signature:

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]
static extern int NetShareAdd(
    string servername,
    [MarshalAs(UnmanagedType.U4)]
    int level,
    IntPtr buf,
    [MarshalAs(UnmanagedType.U4)]
    ref int parm_err);

VB Signature:

Declare Function NetShareAdd Lib "comdlg32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes1:

The buf parameter should be a SHARE_INFO_2, SHARE_INFO_502, or share_info_50 structure, based on the level parameter.
The values will need to be passed to the static StructToPtr method on the Marshal class to get an IntPtr which can be
passed as the buf parameter.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
NetShareAdd on MSDN