Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
911 B

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 2000
  4. *
  5. * TITLE: CRC32.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 7/7/2000
  12. *
  13. * DESCRIPTION: Generate a 32bit CRC.
  14. *
  15. * This code was taken from \nt\base\ntos\rtl\checksum.c and modified.
  16. *
  17. * A verified test case for this algorithm is that "123456789"
  18. * should return 0xCBF43926.
  19. *
  20. *******************************************************************************/
  21. #ifndef __WIACRC32_H_INCLUDED
  22. #define __WIACRC32_H_INCLUDED
  23. #include <windows.h>
  24. namespace WiaCrc32
  25. {
  26. DWORD GenerateCrc32( DWORD cbBuffer, PVOID pvBuffer );
  27. DWORD GenerateCrc32Handle( HANDLE hFile );
  28. DWORD GenerateCrc32File( LPCTSTR pszFilename );
  29. }
  30. #endif // __WIACRC32_H_INCLUDED