Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CCryptHash::AddData 

Call this method to add data to the hash.


HRESULT AddData(
   const BYTE * pbData,
   DWORD dwDataLen,
   DWORD dwFlags = 0 
) throw( );

Parameters

pbData

Pointer to a buffer containing the data to be added to the hash.

dwDataLen

Number of bytes of data to be added. Must be 0 if the CRYPT_USERDATA flag is set.

dwFlags

Set the CRYPT_USERDATA flag to specify that the cryptographic service provider prompts the user to input data directly. In this case, the data is added to the hash, and the application is not allowed to access the data. This flag can be set to allow the user to enter a PIN into the system.

Returns S_OK on success, or an error HRESULT on failure.

For more information, see CryptHashData in the Platform SDK.

Community Additions

ADD
Show:
© 2015 Microsoft