home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winnt / netapi / chngpass / readme.txt < prev   
Encoding:
Text File  |  1996-07-11  |  919 b   |  24 lines

  1. Networking (LAN Manager) API Sample
  2.  
  3.  
  4. This sample changes the password for an arbitrary user on an arbitrary
  5. target machine.
  6.  
  7. When targetting a domain controller for account update operations,
  8. be sure to target the primary domain controller for the domain.
  9. The account settings are replicated by the primary domain controller
  10. to each backup domain controller as appropriate.  The NetGetDCName()
  11. Lan Manager API call can be used to get the primary domain controller
  12. computer name from a domain name.
  13.  
  14. Note that admin or account operator privilege is required on the
  15. target machine unless argv[4] is present and represents the correct
  16. current password.
  17.  
  18. NetUserSetInfo() at info-level 1003 is appropriate for administrative
  19. over-ride of an existing password.
  20.  
  21. NetUserChangePassword() allows for an arbitrary user to over-ride
  22. an existing password providing that the current password is confirmed.
  23.  
  24.