Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to know if a specified string is the current windows account password?

How to know if a specified string is the current windows account password?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momer
    wrote on last edited by
    #1

    Sir, Now I waana write a program by which my user can change the current windows account password. So,at first I should check the string typed by my user to see if it's the correct current windows account password. And then write down the new password offered by my user to the correct place. But I do not know how to retrieve the current windows account password or how to check the specified string is just the current windows account password. Please show me the way! Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

    S T J 3 Replies Last reply
    0
    • M momer

      Sir, Now I waana write a program by which my user can change the current windows account password. So,at first I should check the string typed by my user to see if it's the correct current windows account password. And then write down the new password offered by my user to the correct place. But I do not know how to retrieve the current windows account password or how to check the specified string is just the current windows account password. Please show me the way! Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

      S Offline
      S Offline
      Smith
      wrote on last edited by
      #2

      So you wanna steal someone's password? :~ ;p lol

      T 1 Reply Last reply
      0
      • M momer

        Sir, Now I waana write a program by which my user can change the current windows account password. So,at first I should check the string typed by my user to see if it's the correct current windows account password. And then write down the new password offered by my user to the correct place. But I do not know how to retrieve the current windows account password or how to check the specified string is just the current windows account password. Please show me the way! Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        momer wrote:

        t I do not know how to retrieve the current windows account password or how to check the specified string is just the current windows account password.

        is LogonUser api call of any use!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • S Smith

          So you wanna steal someone's password? :~ ;p lol

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Meat Loaf wrote:

          So you wanna steal someone's password? :~;p

          I believe he want to use Windows user security for his program!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

          M 1 Reply Last reply
          0
          • M momer

            Sir, Now I waana write a program by which my user can change the current windows account password. So,at first I should check the string typed by my user to see if it's the correct current windows account password. And then write down the new password offered by my user to the correct place. But I do not know how to retrieve the current windows account password or how to check the specified string is just the current windows account password. Please show me the way! Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

            J Offline
            J Offline
            James R Twine
            wrote on last edited by
            #5

            If all you want to do is change the user's password, then check out functions like NetUserChangePassword(...).  (Other ones like NetUserSetInfo(...) and NetUserGetInfo(...) might provide some additional education.)    Peace! -=- James


            If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
            DeleteFXPFiles & CheckFavorites (Please rate this post!)

            1 Reply Last reply
            0
            • T ThatsAlok

              Meat Loaf wrote:

              So you wanna steal someone's password? :~;p

              I believe he want to use Windows user security for his program!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

              M Offline
              M Offline
              momer
              wrote on last edited by
              #6

              Hi!Alok, Thank you all. There is no need for me to steal other's password but just to let my user can change their windows password by using my program,which we call as USB Pc-Lock. Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

              T 1 Reply Last reply
              0
              • M momer

                Hi!Alok, Thank you all. There is no need for me to steal other's password but just to let my user can change their windows password by using my program,which we call as USB Pc-Lock. Best Regards! momer All the blesses we enjoy are the fruits of labor,toil,study and self-denail.

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                momer wrote:

                my user can change their windows password

                look here http://www.codeproject.com/script/comments/forums.asp?msg=1531363&forumid=1647&mode=all&userid=1379778#xx1531363xx[^]

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups