0

I have a HANDLE of a file, hFile. I want to find its MD5, How can I? I just need a little guidance.

HANDLE hFile=myClass.getHandle();
calculateMd5(hFile);
calculatemMd5(HANDLE hFile)
{
...???
}
Noor Nawaz
  • 2,175
  • 27
  • 36

1 Answers1

1

Example C Program: Creating an MD5 Hash from File Content

vershov
  • 928
  • 4
  • 6
  • I have seen this already. but where can I find winencrpyt.dll after including winencrpyt.h? – Noor Nawaz Jan 13 '14 at 08:11
  • You need to use `wincrypt.h` header and `crypt32.lib` library – vershov Jan 13 '14 at 08:59
  • When I include wincrypt.h, should I add crypt32.lib explicitly? because I'm getting link error. and how to add crypt32.lib in Qt project? – Noor Nawaz Jan 15 '14 at 08:42
  • @NoorNawaz yes, you should all it explicitly. Check how to add external libraries at Qt projects [here](http://stackoverflow.com/questions/718447/adding-external-library-into-qt-creator-project). – vershov Jan 15 '14 at 09:05