Lines Matching refs:AccountControl
127 GetAccountFlags(ULONG AccountControl, in GetAccountFlags() argument
150 if (AccountControl & USER_ACCOUNT_DISABLED) in GetAccountFlags()
153 if (AccountControl & USER_HOME_DIRECTORY_REQUIRED) in GetAccountFlags()
156 if (AccountControl & USER_PASSWORD_NOT_REQUIRED) in GetAccountFlags()
159 if (AccountControl & USER_ACCOUNT_AUTO_LOCKED) in GetAccountFlags()
162 if (AccountControl & USER_DONT_EXPIRE_PASSWORD) in GetAccountFlags()
189 if (AccountControl & USER_TEMP_DUPLICATE_ACCOUNT) in GetAccountFlags()
191 else if (AccountControl & USER_NORMAL_ACCOUNT) in GetAccountFlags()
193 else if (AccountControl & USER_INTERDOMAIN_TRUST_ACCOUNT) in GetAccountFlags()
195 else if (AccountControl & USER_WORKSTATION_TRUST_ACCOUNT) in GetAccountFlags()
197 else if (AccountControl & USER_SERVER_TRUST_ACCOUNT) in GetAccountFlags()
208 ULONG AccountControl = 0; in GetAccountControl() local
211 AccountControl |= USER_ACCOUNT_DISABLED; in GetAccountControl()
214 AccountControl |= USER_HOME_DIRECTORY_REQUIRED; in GetAccountControl()
217 AccountControl |= USER_PASSWORD_NOT_REQUIRED; in GetAccountControl()
220 AccountControl |= USER_ACCOUNT_AUTO_LOCKED; in GetAccountControl()
223 AccountControl |= USER_DONT_EXPIRE_PASSWORD; in GetAccountControl()
227 AccountControl |= USER_TEMP_DUPLICATE_ACCOUNT; in GetAccountControl()
229 AccountControl |= USER_NORMAL_ACCOUNT; in GetAccountControl()
231 AccountControl |= USER_INTERDOMAIN_TRUST_ACCOUNT; in GetAccountControl()
233 AccountControl |= USER_WORKSTATION_TRUST_ACCOUNT; in GetAccountControl()
235 AccountControl |= USER_SERVER_TRUST_ACCOUNT; in GetAccountControl()
237 return AccountControl; in GetAccountControl()