freeotfeplatform.h

来自「文件驱动加密,功能强大,可产生加密分区,支持AES,MD2,MD4,MD5MD2」· C头文件 代码 · 共 30 行

H
30
字号
// Description: 
// By Sarah Dean
// Email: sdean12@sdean12.org
// WWW:   http://www.FreeOTFE.org/
//
// -----------------------------------------------------------------------------
//

#ifndef _FreeOTFEPlatform_H
#define _FreeOTFEPlatform_H   1

#ifdef WINCE
#define FREEOTFE_MEMALLOC(x)              malloc(x)
#define FREEOTFE_FREE(x)                  free(x)
#define FREEOTFE_MEMZERO(x, size)         memset(x, 0, size)
#define FREEOTFE_MEMCPY(dest, src, size)  memcpy(dest, src, size)
#else
#define FREEOTFE_MEMALLOC(x)              ExAllocatePool(NonPagedPool, x)
#define FREEOTFE_FREE(x)                  ExFreePool(x)
#define FREEOTFE_MEMZERO(x, size)         RtlZeroMemory(x, size)
#define FREEOTFE_MEMCPY(dest, src, size)  RtlCopyMemory(dest, src, size)
#endif

#define FREEOTFEBYTE  unsigned char
#define FREEOTFEBOOL  BOOLEAN


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?