VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Change a User's Password (w/o Active Directory)

Piyush Gupta  (3 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Mon 15th October 2001   Mon 8th February 2021

Change a User's Password (w/o Active Directory)

API Declarations



Private Declare Function NetUserChangePassword _
Lib "Netapi32.dll" (ComputerName As Any, User As Any, _
OldPass As Any, NewPass As Any) As Long

Private Const ERROR_ACCESS_DENIED = 5&
Private Const ERROR_INVALID_PASSWORD = 86&
Private Const NERR_InvalidComputer = 2351
Private Const NERR_NotPrimary = 2226
Private Const NERR_UserNotFound = 2221
Private Const NERR_PasswordTooShort = 2245
Private Const ERROR_CANT_ACCESS_DOMAIN_INFO = 1351


Rate Change a User's Password (w/o Active Directory) (2(2 Vote))
Change a User's Password (w/o Active Directory).bas

Change a User's Password (w/o Active Directory) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters