📄 hlib32.h
字号:
//HLib32.h
#ifndef __HLIB32_H
#define __HLIB32_H
#include <windows.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <math.h>
#include <io.h>
#include <fcntl.h>
#include <assert.h>
#include <string.h>
#include <process.h>
#include <HLibDataType.h>
#undef WINVER
#define WINVER 0X0500
#include <dbt.h>
#ifndef AFX_EXT_CLASS
#define AFX_EXT_CLASS __declspec(dllexport)
#endif
#ifndef AFX_EXT_API
#define AFX_EXT_API __declspec(dllexport)
#endif
//16比特CRC函数:X^16+x^15+x^2+1
WORD HCrc(BYTE *buf,long nLen,BOOL bTailIt);
//16比特CRC校验函数:X^16+x^15+x^2+1
BOOL HCrcVerify(BYTE *buf,long nLen);
//32比特CRC函数
DWORD HCrc32(BYTE *buf,long nLen,BOOL bTailIt);
//32比特CRC校验函数
BOOL HCrc32Verify(BYTE *buf,long nLen);
//独立性检测,乱数长度=1k(1024字节)函数返回0--单码独立性合格;1--超限
BYTE HRandCheckIndependence(unsigned char *lpbuffer);
#endif //__HLIB32_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -