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
35 lines
911 B
/*******************************************************************************
|
|
*
|
|
* (C) COPYRIGHT MICROSOFT CORPORATION, 2000
|
|
*
|
|
* TITLE: CRC32.H
|
|
*
|
|
* VERSION: 1.0
|
|
*
|
|
* AUTHOR: ShaunIv
|
|
*
|
|
* DATE: 7/7/2000
|
|
*
|
|
* DESCRIPTION: Generate a 32bit CRC.
|
|
*
|
|
* This code was taken from \nt\base\ntos\rtl\checksum.c and modified.
|
|
*
|
|
* A verified test case for this algorithm is that "123456789"
|
|
* should return 0xCBF43926.
|
|
*
|
|
*******************************************************************************/
|
|
#ifndef __WIACRC32_H_INCLUDED
|
|
#define __WIACRC32_H_INCLUDED
|
|
|
|
#include <windows.h>
|
|
|
|
namespace WiaCrc32
|
|
{
|
|
DWORD GenerateCrc32( DWORD cbBuffer, PVOID pvBuffer );
|
|
DWORD GenerateCrc32Handle( HANDLE hFile );
|
|
DWORD GenerateCrc32File( LPCTSTR pszFilename );
|
|
}
|
|
|
|
|
|
#endif // __WIACRC32_H_INCLUDED
|
|
|