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.

50 lines
1.8 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1996-2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: CRC.h
  6. * Content: CRC Routines for COM port I/O
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 12/18/98 johnkan Copied from DPlay 6.x and fixed up
  12. *@@END_MSINTERNAL
  13. ***************************************************************************/
  14. #ifndef __CRC_H__
  15. #define __CRC_H__
  16. //**********************************************************************
  17. // Constant definitions
  18. //**********************************************************************
  19. //**********************************************************************
  20. // Macro definitions
  21. //**********************************************************************
  22. //**********************************************************************
  23. // Structure definitions
  24. //**********************************************************************
  25. //**********************************************************************
  26. // Variable definitions
  27. //**********************************************************************
  28. //**********************************************************************
  29. // Function prototypes
  30. //**********************************************************************
  31. //**********************************************************************
  32. // Function definitions
  33. //**********************************************************************
  34. //void GenerateCRCTable( void );
  35. DWORD GenerateCRC( const BYTE *const pBuffer, const DWORD dwBufferSize );
  36. DWORD GenerateMultiBufferCRC( const BUFFERDESC *const pBuffers, const DWORD dwBufferCount );
  37. #ifdef DBG
  38. void ValidateCRCTable( void );
  39. #endif // DBG
  40. #endif // __CRC_H__