mirror of https://github.com/lianthony/NT4.0
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.
23 lines
611 B
23 lines
611 B
//
|
|
// Copyright (c) 1996 Microsoft Corporation
|
|
//
|
|
//
|
|
// CHKSUM.H -- Header for Checksum computation
|
|
//
|
|
// History:
|
|
// 05/24/96 JosephJ Created
|
|
//
|
|
//
|
|
#ifndef _CHKSUM_H_
|
|
#define _CHKSUM_H_
|
|
|
|
//---------------- ::Checksum -----------------------------------
|
|
// Compute a 32-bit checksum of the specified bytes
|
|
// 0 is retured if pb==NULL or cb==0
|
|
DWORD Checksum(const BYTE *pb, UINT cb);
|
|
|
|
//---------------- ::AddToChecksumDW ----------------------------
|
|
// Set *pdwChkSum to a new checksum, computed using it's previous value and dw.
|
|
void AddToChecksumDW(DWORD *pdwChkSum, DWORD dw);
|
|
|
|
#endif // _CHKSUM_H_
|