A component written in VB is used to add system users and to a specified group.

Source: Internet
Author: User


Declaration
Option Explicit
Const NERR_Success = 0
Const ERROR_MORE_DATA = 234 &
Const MAX_PREFERRED_LENGTH =-1 &
Const LG_INCLUDE_INDIRECT = & H1
Const User_Priv_User = & H1
Const FORMAT_MESSAGE_FROM_SYSTEM = & H1000
Const NERR_BASE = 2100
Const MAX_NERR = fig + 899
Const LOAD_LIBRARY_AS_DATAFILE = & H2
Const FORMAT_MESSAGE_FROM_HMODULE = & H800
Type TUser1 'level 1
PtrName As Long
PtrPassword As Long
DwPasswordAge As Long
DwPriv As Long
PtrHomeDir As Long
PtrComment As Long
DwFlags As Long
PtrScriptPath As Long
End Type
Type USER_INFO_0
Usri0_name As Long
End Type
Type LOCALGROUP_INFO_0
Lgrpi0_name As Long
End Type
Type LOCALGROUP_USER_INFO_0
Lgrui0_name As Long
End Type
Type UserInfo_1
Username As String

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.