// RU_DLL.h : main header file for the RU_DLL DLL
//

#if !defined(AFX_RU_DLL_H__0D47AA85_1AB6_4B56_B2F0_79977CE23C68__INCLUDED_)
#define AFX_RU_DLL_H__0D47AA85_1AB6_4B56_B2F0_79977CE23C68__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CRU_DLLApp
// See RU_DLL.cpp for the implementation of this class
//
#define STX     0x02
#define ETX     0x03



#define HIDDEVICEHASOOPENED -107
#define WRONGBAGHEAD     -108
#define WRONGCMD         -109
#define CMDFAILED         -110

#define NOTSHUAKA       -111
#define SHUAKAFAILED    -112


class CRU_DLLApp : public CWinApp
{
public:
	CRU_DLLApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRU_DLLApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CRU_DLLApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


int __stdcall OpenRU( HANDLE* HidHandle);
int __stdcall CloseRU(HANDLE* HidHandle);
int __stdcall SendCmd(HANDLE HidHandle,BYTE SendBuf[],BYTE SendBufLen,BYTE ReBuf[1024]);
int __stdcall GetRUVersion(IN HANDLE HidHandle,char*Version);
int __stdcall SetRU(HANDLE HidHandle,BYTE Setting[8]);
int __stdcall SetPassivenessMode(HANDLE HidHandle);
int __stdcall SetInitiativeMode(HANDLE HidHandle);
int __stdcall PassivenessReadData(HANDLE HidHandle,BYTE  ReadTrack,BYTE ReData[1024]);
int __stdcall QueryStates(HANDLE HidHandle,BYTE *Status);
int __stdcall ClearCache(HANDLE HidHandle);
int __stdcall EnableCard(HANDLE HidHandle);
int __stdcall DisEnableCard(HANDLE HidHandle);
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.





#endif // !defined(AFX_RU_DLL_H__0D47AA85_1AB6_4B56_B2F0_79977CE23C68__INCLUDED_)
