i am using C++ Win32 API…
i want to know the user password policies properties value…
that is “Password never expires” ,how to check this property is checked or not using C++ Win32 API?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use COM interface IADsUser.
See this MSDN example for enabling “never expires” flag
You can use it first part before to row
V_I4(&var) |= ADS_UF_DONT_EXPIRE_PASSWD;– replace it withif (V_I4(&var) & ADS_UF_DONT_EXPIRE_PASSWD) { /* option is enabled! your code here */}Hope this helps. And this is work 🙂