Announcement

Collapse
No announcement yet.

LogonUser and LOGON32_LOGON_NEW_CREDENTIALS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • LogonUser and LOGON32_LOGON_NEW_CREDENTIALS

    Anyone have much experience with using these two? Its been awhile since threads about LogonUser...usually they all involved the rights needed for it, etc. I have XP+, so I don't have to worry about that. My issue is determining error status. LogonUser seems to return that it has no error even when an incorrect password is given. The only thing that seems to make it fail is not giving a username. LOGON32_LOGON_INTERACTIVE and such seem to work, although it won't authenticate with Network IDs...they return proper error codes though. I never get error 1327 though which I've seen reported as no password. I'm a bit confused about the Error 203 though that I've seen in a SELECT CASE Structure here meaning Authentication Correct when errors should only be checked if the function reports a failure...but I do get it if I check no matter what in an LOGON32_LOGON_INTERACTIVE logon. Every now and then I get the weird module not found error too which I can't figure out.

    Other than no errors being reported, LogonUser and LOGON32_LOGON_NEW_CREDENTIALS works to access network resources when correct values are given...I just can't confirm when the values are incorrect.
    sigpic
    Mobile Solutions
    Sys Analyst and Development
Working...
X