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.
28 lines
478 B
28 lines
478 B
#ifndef _MT_
|
|
#define _MT_
|
|
|
|
#define fMATCH_PARTIAL (0x1<<0)
|
|
#define fMATCH_COMPLETE (0x1<<1)
|
|
|
|
|
|
typedef struct
|
|
{
|
|
DWORD dwLen;
|
|
CHAR *pb;
|
|
LPVOID pv;
|
|
|
|
} MATCHREC, *PMATCHREC;
|
|
|
|
typedef DWORD HMATCHTREE;
|
|
|
|
HMATCHTREE mtCreateTree(PMATCHREC rgmr, DWORD dwcmr);
|
|
void mtFreeTree (HMATCHTREE hmt);
|
|
DWORD mtFindMatch (HMATCHTREE hmt, PMATCHREC pmr);
|
|
|
|
#ifdef DEBUG
|
|
void mtDumpTree (HMATCHTREE hmt);
|
|
#else // !DEBUG
|
|
#define mtDumpTree(_mht) ((void) 0)
|
|
#endif // !DEBUG
|
|
|
|
#endif // _MT_
|