The answer appears to be quite popular, and is upvoted regularly for nearly 6 years since I wrote it. Memory allocated by CredRead() must be freed!Ī generic credential is stored in Windows Vault, as can be seen on the screenshot: ![]() Pcred->UserName, (char*)pcred->CredentialBlob, pcred->CredentialBlobSize) Wprintf (L"Read username = '%s', password='%S' (%d bytes)\n", Wprintf (L"CredRead() - errno %d\n", ok ? 0 : ::GetLastError()) Wprintf (L"CredWrite() - errno %d\n", ok ? 0 : ::GetLastError()) īOOL ok = ::CredReadW (L"FOO/account", CRED_TYPE_GENERIC, 0,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |