windows-nt/Source/XPSP1/NT/ds/security/passport/include/exclusionfuncs.h

22 lines
786 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/* @doc
*
* @module ExclusionFuncs.h |
*
* Header file for ExclusionFuncs.cpp
*
* Author: Ying-ping Chen (t-ypchen)
*/
#pragma once
// @func bool | IsUserExcluded | Check if the user is excluded
// @rdesc Return the following values:
// @flag true | the user is EXCLUDED
// @flag false | the user is not excluded
bool IsUserExcluded(LPCWSTR pwszNameComplete); // @parm [in] the complete username (e.g., aaa%bbb.org@ccc.com)
// @func bool | RecordLoginFailure | Record a login failure of the user
// @rdesc Return the following values:
// @flag true | the user is EXCLUDED (after too many failures)
// @flag false | the user is not excluded (after this failure)
bool RecordLoginFailure(LPCWSTR pwszNameComplete); // @parm [in] the complete username (e.g., aaa%bbb.org@ccc.com)