GetLockoutInfo2 method

Determines if an account is locked and returns lock information. This method is a script compatible version of the GetLockoutInfo method.

Syntax


C++
HRESULT GetLockoutInfo2(
   VARIANT* pWhenLocked,
   VARIANT* pIPAddress,
   
VARIANT* pLockoutTypes,
   VARIANT_BOOL* pLockStatus)
Scripting languages
LockoutInfo = Object.GetLockoutInfo2()

Parameters


pWhenLocked

Upon return, the date and time when the account was locked.

pIPAddress

Upon return, the IP Address of the user at the time of the lockout.

pLockoutTypes

Upon return, bits representing the type of lockout. (1=lockout, 2=recovery lockout).

pLockStatus

Upon return, TRUE if the account is locked, otherwise FALSE.

Return value


C++

The return code.

Scripting languages

Whether the account is locked, the time the account was locked, the user's IP address, whether the account is locked out and the type of lockout.

Home

Applies to

IERUUser