|
QuickHash Library |
Type Library |
|
QHASH_FileHexDigest
BSTR QHASH_FileHexDigest( [ in ] int nAlgID, [
in , string ] unsigned char* pszFileName, [ in ] boolean
bUpper );
Return value
The hexadecimal representation of the message digest/checksum.
Parameters
nAlgID
[in] The ID of the hash/checksum
algorithm selected for calculations. For example, nAlgID has to be set
to SHA1_ALGID when you need to calculate the digest using
SHA-1 hash algorithm.
Note. All supported hash/checksum
algorithms with their corresponding IDs are specified in the
Predefined Constants List.
pszFileName
[in] A null-terminated
string specifying the name of the file for which to calculate the message digest/checksum.
bUpper
[in] Uppercase flag. If bUpper
is False, the received message digest/checksum represents a lowercase string,
otherwise it represents an uppercase string.
Remarks
Calculates and returns the message digest/checksum
for a file. The digest/checksum is returned as a
hexadecimal string.
Note. If the result is an empty string call
QHASH_GetLastError
function for the error code.
VB Example
Private Sub MyButton_Click()
'Calculate and Show the digest in hexadecimal representation
MsgBox QHASH_FileHexDigest(MD5_ALGID, "C:\Test\Test.txt", True)
End Sub
|
|
Type Library Overview
| Type Library Functions
|
Useful Links | HashCalc
See Also
QHASH_FileDigest,
QHASH_BlockHexDigest,
QHASH_StringHexDigest,
QHASH_GetLastError
|