forked from yhdgs/ArcFaceSDK_Delphi_Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ammemDef.pas
51 lines (42 loc) · 1.68 KB
/
ammemDef.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
(* *******************************************************************************
* C to Pascal by NJTZ 2017.10.10 eMail:[email protected]
******************************************************************************* *)
unit ammemDef;
interface
uses
Windows, Messages, SysUtils, Classes, amcomdef;
type
__tag_mem_info = record
dwTotalMemUsed: MDWord;
dwTotalMemFree: MDWord;
end;
MMEMINFO = __tag_mem_info;
{$EXTERNALSYM MMEMINFO}
LPMMEMINFO = ^__tag_mem_info;
{$EXTERNALSYM LPMMEMINFO}
{
function MMemAlloc(hContext: MHandle; lSize: MLong): MVoid;
function MMemRealloc(hContext: MHandle; var pMem: MVoid; lSize: MLong): MVoid;
function MMemFree(hContext: MHandle; var pMem: MVoid): MVoid;
function MMemSet(var pMem: MVoid; byVal: MByte; lSize: MLong): MVoid;
function MMemCpy(var pDst: MVoid; var pSrc: MVoid; lSize: MLong): MVoid;
function MMemMove(var pDst: MVoid; var pSrc: MVoid; lSize: MLong): MVoid;
function MMemCmp(var pBuf1: MVoid; var pBuf2: MVoid; lSize: MLong): MLong;
function MMemMgrCreate(var pMem: MVoid; lMemSize: MLong): MHandle;
function MMemMgrDestroy(hMemMgr: MHandle): MVoid;
function GetMaxAllocMemSize(hContext: MHandle): MLong;
}
MPBASE_Version = record
lCodebase: MLong; //Codebase version number
lMajor: MLong; //major version number
lMinor: MLong; //minor version number
lBuild: MLong; //Build version number, increasable only
Version: PAnsiChar; //version in string form
BuildDate: PAnsiChar; //latest build Date
CopyRight: PAnsiChar; //copyright
end;
TMPBASE_Version = MPBASE_Version;
{$EXTERNALSYM TMPBASE_Version}
//function Mpbase_GetVersion(): MPBASE_Version;
implementation
end.