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. User Password

User Password

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
7 Posts 5 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hi Forum, i need help by retriving the current user password, in my application user can create a task to schedule, but i dont want that the user inputs him password and name, this should be comming from the funktion, the user name i get with the GetUserName() method but i need hims password to create a task! Is that any known method for this? method NetUserGetInfo() retrives me a empty string so i can't take it, example : NetUserGetInfo( NULL, user_name, 1, (byte **) &info ); CString strUserPassword = info->usri1_password; strUserPassword is empty now! thanx for help mirsad

    L B 2 Replies Last reply
    0
    • A Anonymous

      Hi Forum, i need help by retriving the current user password, in my application user can create a task to schedule, but i dont want that the user inputs him password and name, this should be comming from the funktion, the user name i get with the GetUserName() method but i need hims password to create a task! Is that any known method for this? method NetUserGetInfo() retrives me a empty string so i can't take it, example : NetUserGetInfo( NULL, user_name, 1, (byte **) &info ); CString strUserPassword = info->usri1_password; strUserPassword is empty now! thanx for help mirsad

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      ähm, im not Anonymous, its my posting, mirsad

      1 Reply Last reply
      0
      • A Anonymous

        Hi Forum, i need help by retriving the current user password, in my application user can create a task to schedule, but i dont want that the user inputs him password and name, this should be comming from the funktion, the user name i get with the GetUserName() method but i need hims password to create a task! Is that any known method for this? method NetUserGetInfo() retrives me a empty string so i can't take it, example : NetUserGetInfo( NULL, user_name, 1, (byte **) &info ); CString strUserPassword = info->usri1_password; strUserPassword is empty now! thanx for help mirsad

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        You have to ask the user for his password. For security purposes, there is not a readily available API to retrieve the user's password. Else every trojan, worm, and virus out there would be using it.

        M 1 Reply Last reply
        0
        • B Blake Miller

          You have to ask the user for his password. For security purposes, there is not a readily available API to retrieve the user's password. Else every trojan, worm, and virus out there would be using it.

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          (In fact, there is no API to read the password because the OS doesn't even store the password.) --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

          L 1 Reply Last reply
          0
          • M Michael Dunn

            (In fact, there is no API to read the password because the OS doesn't even store the password.) --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            thanx for answers, for example, when i create a task for my antivirus programm to start every day in 00:00 time, i dont need a passwort, and the task is valid, that is because i thing that is possible, and i know, a new task whitout a USERNAME and PASSWORD will NEWER start, how is that possible?! that is thrue! So i look for a new solution to create a new task whitout a needs to user inputs him's password! The username is not a problem! There must be a way to due this, the people from symantec due the same :) thanx mirsad

            D 1 Reply Last reply
            0
            • L Lost User

              thanx for answers, for example, when i create a task for my antivirus programm to start every day in 00:00 time, i dont need a passwort, and the task is valid, that is because i thing that is possible, and i know, a new task whitout a USERNAME and PASSWORD will NEWER start, how is that possible?! that is thrue! So i look for a new solution to create a new task whitout a needs to user inputs him's password! The username is not a problem! There must be a way to due this, the people from symantec due the same :) thanx mirsad

              D Offline
              D Offline
              deldeep
              wrote on last edited by
              #6

              Actually Power Behind Symantec Anitvirus is that it's running it's scanning engine as a Window Service(which run on Administrative Priviledge) keep smilling.....b'coz smile is the shortest distance between people....

              L 1 Reply Last reply
              0
              • D deldeep

                Actually Power Behind Symantec Anitvirus is that it's running it's scanning engine as a Window Service(which run on Administrative Priviledge) keep smilling.....b'coz smile is the shortest distance between people....

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                :(:sigh::((

                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