https://learn.microsoft.com/en-us/windows/win32/api/ntsecpkg/nc-ntsecpkg-lsa_ap_logon_user_ex2
LSA_AP_LOGON_USER_EX2 (ntsecpkg.h) - Win32 apps | Microsoft Learn
Used to authenticate a user logon attempt on the user's initial logon. A new logon session is established for the user, and validation information for the user...
lsaaplogonuser