ifdef STANDALONE
KSEM struc
	dd ?
KSEM ends

VMHOB struc
	dw ?
VMHOB ends

VMHKH struc
	dw ?
VMHKH ends

VM_HKH_PUB_RESRW	EQU	1 
VM_HKH_PUB_SWAPRW	EQU	3 
endif
HPTKEY struc
	dd ?
HPTKEY ends

BI struc
	dw ?
BI ends

KEYLEN struc
	dd ?
KEYLEN ends

I_KEYLEN struc
	dw ?
I_KEYLEN ends


sPTNODE	STRUC
ptn_bi	DW	?
ptn_iKeyLen	DW	?
ptn_pnLeft	DD	?
ptn_pnRight	DD	?
ptn_hKey	DD	?
sPTNODE	ENDS

PTNODE struc
db size sPTNODE dup(?)
PTNODE ends

P_PTNODE struc
	dd ?
P_PTNODE ends

HPTREE struc
	dd ?
HPTREE ends

PF_KEYALLOC struc
        dd ?
PF_KEYALLOC ends

PF_KEYFREE struc
        dd ?
PF_KEYFREE ends

PF_GETKEY struc
        dd ?
PF_GETKEY ends

PF_WALK struc
        dd ?
PF_WALK ends

PF_WALKNODE struc
        dd ?
PF_WALKNODE ends
 

sPTHEAD	STRUC
pth_nHeader	DB	SIZE PTNODE DUP (?)
pth_ksem	DB	SIZE KSEMSHR DUP (?)
pth_lFlags	DD	?
pth_owner	DW	?
pth_cNodes	DD	?
pth_cMaxNodes	DD	?
pth_KeyAlloc	DB	SIZE PF_KEYALLOC DUP (?)
pth_KeyFree	DB	SIZE PF_KEYFREE DUP (?)
pth_GetKey	DB	SIZE PF_GETKEY DUP (?)
pth_pfWalk	DB	SIZE PF_WALK DUP (?)
sPTHEAD	ENDS

PTHEAD struc
db size sPTHEAD dup(?)
PTHEAD ends

PTF_HEADSWAP	EQU	0001H   
PTF_NODESWAP	EQU	0002H   
PTF_PANICINSERT	EQU	0010H   
PTF_PANICDELETE	EQU	0020H   
PTF_DEBUG	EQU	8000H   
