@msdn=http://msdn.microsoft.com/en-us/library/bb706734.aspx @pinvoke=http://pinvoke.net/$$$.htm Summary: Sets the parameters of a user account !!!!C# Signature: [DllImport("netapi32.dll", CharSet = CharSet.Unicode)] static extern int NetUserSetInfo( string servername, string username, int level, IntPtr buf, out UInt32 parm_err ); [DllImport("netapi32.dll", CharSet = CharSet.Unicode)] static extern int NetUserSetInfo( [MarshalAs(UnmanagedType.LPWStr)] string servername, string username, int level, ref USER_INFO_1003 buf, out UInt32 parm_err ); [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct USER_INFO_1003 { public string sPassword; } !!!!VB Signature: TODO !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!C# Sample Code: USER_INFO_1003 o = new USER_INFO_1003(); o.sPassword = "password"; uint parm_err; int r = NetUserSetInfo(null, "account", 1003, ref o, out parm_err); Documentation: NetUserSetInfo@msdn on MSDN
Edit netapi32.netusers...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.