Source code of Windows XP (NT5)
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.

51 lines
618 B

  1. /*++
  2. Copyright (c) 1998-1999, Microsoft Corporation
  3. Module Name:
  4. CCrc32.h
  5. Abstract:
  6. --*/
  7. #ifndef CCRC32_H
  8. #define CCRC32_H
  9. #ifndef __WINDOWS_H
  10. #include <windows.h>
  11. #endif
  12. // Used Definitions Declarations
  13. #define CCRC32_CLASSID 0x13420808L
  14. #define CRC32_POLYNOMIAL 0xEDB88320
  15. // Class Declaration
  16. class CCrc32
  17. {
  18. public:
  19. CCrc32();
  20. virtual ~CCrc32();
  21. public:
  22. ULONG CalculateBlockCRC( LPVOID lpvBlock, INT nBlockLength );
  23. public:
  24. ULONG uClassID;
  25. private:
  26. VOID InitialiseCRCTable();
  27. private:
  28. ULONG m_uCRC32Table[ 256 ];
  29. };
  30. #endif