在 2023-06-23 14:04, Steve Lhomme 写道:
The hidden API are found in windowsapp since the RS4/19H1 SDK. They are
also allowed by the WACK in api-ms-win-security-cryptoapi-l1-1-0.
That DLL has been on all Windows 10 versions [1].

It's better to use the real API than using CCryptography winrt API just for
these calls.

Crypto.c is kept in the old winstorecompat when targetting Windows 8.

Apps targetting UWP before 19H1 and using CryptGenRandom may not work
if api-ms-win-security-cryptoapi-l1-1-0.dll on older Windows doesn't
contain the entry.

[1] 
https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-security-cryptoapi-l1-1-0dll
---
  .../api-ms-win-security-cryptoapi-l1-1-0.def         | 12 ++++--------
  .../lib32/api-ms-win-security-cryptoapi-l1-1-0.def   | 12 ++++--------
  mingw-w64-libraries/winstorecompat/Makefile.am       |  1 -
  3 files changed, 8 insertions(+), 17 deletions(-)

Thanks for these patches. Pushed now.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to