borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (API and Locale Info...)Next Topic (\'Quick Mixer\' added functionality? Please help.) New Topic New Poll Post Reply
AndreaVB Forum : API : Error 1326 using CreateProcessWithLogonW
Poster Message
psneto
Level: Trainee

Registered: 05-04-2005
Posts: 1

icon Error 1326 using CreateProcessWithLogonW

Hi friends...

I need to check the user name and password using the windows security.

I'm using the CreateProcessWithLogonW API to do this, and it is ok while I don't change the name of user ( XP SP2 and Win2k Portuguese language). After I change the name of user, always the CreateProcessWithLogonW return the error code 1326.

Can Somebody  help-me ?

Tks a lot

Paulo

05-04-2005 at 07:12 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Error 1326 using CreateProcessWithLogonW

You can retreive logged user name using GetUserName API, but it is not the case with password. If user changed password, ask from user to reenter the password. It is not a good policy to store passwords in code, for security reasons, there is a chance for hacker to discover it. Check MS article about handling passwords

____________________________
If you find the answer helpful, please mark this topic as solved.

05-04-2005 at 09:19 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Error 1326 using CreateProcessWithLogonW
Previous Topic (API and Locale Info...)Next Topic (\'Quick Mixer\' added functionality? Please help.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder