Error: LogonUser failed with error code 1909


I'm facing with a very strange issue with function LogonUser of Win32 API (Document:

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?

asked on Stack Overflow Aug 25, 2020 by Tuan Huu

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0