typedef struct DINF {
	Int8  	TReg;       // Tipo de registro
	Char    Inf[200];   // Informacion
} INF;

typedef struct DMOV {
	Char     Inf[1];     // Movimiento
} MOV;	

#define   NumTipoReg     7
void 		InicioBD		()                        		ES2;
void 		FinBD			()                        		ES2;
MemPtr      SacarApRM       ()                        		ES2;
MemPtr      SacarApMM       ()                        		ES2;
Int16 		SacarTotReg		()                        		ES2;
Int16 		SacarTotMov		(UInt16)                  		ES2;
Int16 		SacarLonMax		(Int16)                   		ES2;
Int16 		SacarLonReg		(Int16,Int16)             		ES2;
Boolean 	LeerReg 		(INF*,UInt16)             		ES2;
Boolean 	ModReg 			(INF*,UInt16)             		ES2;
Boolean 	BorReg 			(UInt16,Boolean)          		ES2;
Boolean 	InsReg 			(INF *)                   		ES2;
Boolean 	TotMov 			(UInt16, Int16 *)         		ES2;
Boolean 	LeerMov 		(MOV*, UInt16, Int16)           ES2;
Boolean 	ModMov 			(MOV*, UInt16, Int16)    		ES2;
Boolean 	BorMov 			(UInt16, Int16,Boolean)  		ES2;
Boolean 	InsMov 			(MOV*, UInt16)            		ES2;
Boolean 	LeerTipo 		(UInt16, Int16 * )        		ES2;
Boolean     LeerTyST        (UInt16, Int16 *,Int16 *) 		ES2;
Boolean 	SacarNReg 		(Int16, Int16, UInt16 *)  		ES2;
Boolean     SacarNRegNMov   (ID*, UInt16*, Int16*, Boolean)	ES2;
Boolean     SacarProxRef    (UInt16,Int32,Int16*,Boolean) 	ES2;
void  		SacarID 		(ID*) 							ES2;
Boolean     CGB_ID          (ID*,Int8)                      ES2;
Boolean 	LeerConID     	(ID*,void*,Boolean)				ES2;
Boolean 	GuardarConID   	(ID*,void*)  					ES2;
UInt8 		SacarTpApRM		(void)  						ES2;
Boolean     LeerTipoID      (ID *,Int16 *)                  ES2;