Forum: Win32/Win64 API (native code)
Delphi
by himitsu,
4. Mär 2024
https://github.com/geheimniswelten/WinCryptCred
Forum: Win32/Win64 API (native code)
Delphi
by himitsu,
3. Mär 2024
When reading, currently unimplemented fields were saved in "Credential.Others".
and filled with hard default values when writing.
Yes, I left some things out of the parameters,
but recently at least moved from hard-coded defaults to class vars.
TCryptCredential.DefaultPersist := ccpEnterprise;
I'm currently in the process of moving this to GitHub.
Forum: Win32/Win64 API (native code)
Delphi
by himitsu,
2. Mär 2024
Thanks again for your help.
Sometimes I just have tomatoes on the eyes. :coder2:
At first I thought that CredProtect was applied to the entire PCREDENTIAL, but at some point I found out that it was only applied to the CredentialBlob from the few examples that could be found on the internet.
The way I see it, you could also apply it to the attributes, but in the main data it's enough for me...
Forum: Win32/Win64 API (native code)
Delphi
by himitsu,
1. Mär 2024
Moin, ich/wir spielen grade etwas mit den Windows Credentials.
Nun wollte ich noch CredProtect, CredUnprotect und CredIsProtected hinzufügen,
aber ... nja, CredIsProtected sollte doch eigentlich nur lesen? Aber es schreibt den Speicher nahezu willkührlich um.
vorab:
* Delphi XE bis D12
* mit oder ohne WinMD (ab D11, siehe GetIt)
* nja, vom WinMD das, was sich halbwegs nutzen lässt (was...