All the types are defined as Cardinal (32 bits).
They should be declared as this:
type
HCRYPTPROV = ULONG_PTR;
HCRYPTKEY = ULONG_PTR;
ALG_ID = NativeUInt;
HCRYPTHASH = ULONG_PTR;
As a side note, those functions from advapi32.dll are listed as deprecated by Microsoft.
They should be replaced by https://learn.microsoft.com/fr-fr/windows/win32/seccng/cng-portal (but requires Vista/2008 or above).
All the types are defined as Cardinal (32 bits).
They should be declared as this:
As a side note, those functions from advapi32.dll are listed as deprecated by Microsoft.
They should be replaced by https://learn.microsoft.com/fr-fr/windows/win32/seccng/cng-portal (but requires Vista/2008 or above).