Platform SDK: Active Directory, ADSI, and Directory Services
WinNT User Account Management Examples
The following examples show how to work with some of the user properties using the WinNT provider:
User must change password at next logon
User cannot change password
Password never expires
Account disabled
Account expiration
Account lockout
Primary Group ID
Object SID