I'm facing with a very strange issue with function LogonUser of Win32 API (Document: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-logonusera)
A program contain this function, and when it was called. Sometime it success, sometime it false.
When false, it through this log:
System.ComponentModel.Win32Exception (0x80004005): The referenced account is currently locked out and may not be logged on to at ImpersonationHelper
The thing I dont understand is every 4 hours, this function will false 1 time, while usename, password and domain value do not change. I dont know why it sometime can execute and sometime can not execute
Anyone have idea for this issue?
User contributions licensed under CC BY-SA 3.0