Hi,

On 2023-06-22 15:00, LIU Hao wrote:
在 2023-06-22 17:15, Steve Lhomme 写道:
The API's are allowed in windowsapp since 19H1 and are allowed by the WACK.
Only the MS header don't specify it properly for WINAPI_FAMILY_PC_APP
but since the DLL is on all WINAPI_FAMILY_DESKTOP_APP and allowed by the
WACK this always works.
---
  mingw-w64-headers/include/wincrypt.h | 16 ++++++++++------
  1 file changed, 10 insertions(+), 6 deletions(-)

There are now duplicate definitions of `CryptSetProvider`; is this intentional?

No it's not. I forgot to remove the first one in my rebase.

BTW I would like to know whether ANSI APIs are allowed in APPs. It looks a bit strange that there is only the ANSI variant `CryptEnumProvidersA` but not others.

A lot of ANSI API's are allowed now. But not all of them. Sometimes they are not exported from the same DLL. For example SetVolumeLabelA vs SetVolumeLabelW in [1].

However I overlooked CryptEnumProvidersA. It is in fact allowed since 19H1, just like CryptEnumProvidersW. So it could be moved as well. Would you like me to send again that patch ?

[1] https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis

--
Best regards,
LIU Hao



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

Reply via email to