Platform SDK: Cryptography |
The CPDestroyHash function destroys the hash object referenced by the hHash parameter.
BOOL CPDestroyHash( HCRYPTPROV hProv, // in HCRYPTHASH hHash // in );
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE, and the appropriate error code from the following table must be set using SetLastError.
Error | Description |
---|---|
NTE_BAD_ALGID | The hHash handle specifies an algorithm that this CSP does not support. |
NTE_BAD_HASH | The hash object specified by the hHash parameter is invalid. |
NTE_BAD_UID | The CSP context that was specified when the hash object was created cannot now be found. |
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 OSR2 or later (or Windows 95 with Internet Explorer 3.02 or later).
Header: Declared in Wincrypt.h.