//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//	Laycab.h
//	Luiz Marques Afonso 	Agosto/95
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#ifndef __LAYCAB_H__
#define __LAYCAB_H__

#define IDC_SPEED		101
#define IDC_HSCROLL1		102
#define ID_AJUSTE		103
#define IDC_LPT1		104
#define IDC_LPT2		105
#define IDC_SINC		106
#define IDC_ASSINC		107
#define IDC_CHECKINT		108
#define ID_SOBRE		109
#define VERSIONINFO_1		1
#define IDS_LAYCABWAVEOUT	1

#define VERSAO_DRIVER		0x0100
#define PORTA_DEFAULT		0x0378

//[LMA 17/07/99] - Alteracao dos parametros de velocidade para adaptar as maquinas
//mais velozes rodando Windows 9x.
#if 0
/*
#define VELOCIDADE_MIN		1
#define	VELOCIDADE_MAX		100
#define VELOCIDADE_DEFAULT	50
#define SEMENTE_MAX		1200	//[LMA 03/01/96] - Baixei de 1500 para 1200
*/
#else

#define SEMENTE_MIN		    10
#define SEMENTE_MAX		    1000
#define SEMENTE_DEFAULT		500

#endif


#define NOME_MODULO		"LAYCAB"
#define LOG_FIM_EXECUCAO	"FIM_EXECUCAO"
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ** Typedefs **
typedef enum
{
 	LPT1 = 0, LPT2
}
	PORTA_PARALELA;
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// *** Prototypes ***
// Config.c
extern BOOL CALLBACK    ConfigDlgProc( HWND, UINT, WPARAM, LPARAM );
extern void 		RemoveConfig( void );
// WOD.C
//[LMA 17/07/99] - alteracao do calculo da semente
//extern int		AjustaVelocidade( void );
extern WORD		AjustaSemente( void );
//extern void		TerminaReproducao( void );
// Debug.c
extern void		RegistraNoLog( char * );
// Vtdapi.c
extern BOOL		PegaEntryPointVTDAPI( void );
extern WORD		SetTimerVTDAPI( WORD, WORD, FARPROC, DWORD );
extern BOOL		KillTimerVTDAPI( WORD * );
//mainwep.c
extern void     PegaSementeConfig( void );

//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// *** Variaveis Globais ***
extern char		NomeSecaoSystemIni[],
			ArquivoSystemIni[],
//			VarVelocidade[],
			VarInterrupcoes[],
			VarPorta[],
			VarSincrono[],
			StrLPT1[],
			StrLPT2[],
            VarSemente[],
            VarSementeMin[],
            VarSementeMax[];
extern HINSTANCE	hInstance;
//extern int		Velocidade;
extern WORD Semente,
            SementeMin,
            SementeMax;

extern WORD		PortaParalela;
extern PORTA_PARALELA	Lpt;
extern BOOL		HabilitaIntr,
			TemLPT2,
                        Sincrono;
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


#endif
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
