Search code examples
c++windowswinapipasswordsuser-accounts

Password Information


I want to get the various user account passwords which are stored in my computer programatically using Visual C++. Are there any APIs to help me do this?


Solution

  • There is no way to retrieve windows passwords nor passwords to most other programs via Win32 APIs.

    For Windows passwords you typically have to ask the user to enter their username/password and verify it, all by using LogonUser.

    For other programs they are usually stored on disk encrypted by the host application.