[DllImport("netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)]
private static extern int Win32_NetUserAdd(
[MarshalAs(UnmanagedType.LPWStr)] string servername,
UInt32 level,
IntPtr userInfo,
out UInt32 parm_err);
Declare Function NetUserAdd Lib "netapi32.dll" (TODO) As TODO
USER_INFO_1
Do you know one? Please contribute it!
If the method will only be used with a single user info level, then the userInfo parameter can be simplified to be ref USER_INFO_# userInfo where # is the level you intend to pass.
Please add some!
Please add some!