bp8902v.h

来自「深圳南天东华磁卡读写程序,VC6可编译执行」· C头文件 代码 · 共 68 行

H
68
字号
// bp8902v.h : main header file for the BP8902V DLL
//

#if !defined(AFX_BP8902V_H__3AE7F286_D1CC_11D4_82E4_5254AB15ECA2__INCLUDED_)
#define AFX_BP8902V_H__3AE7F286_D1CC_11D4_82E4_5254AB15ECA2__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

#define OK		0
#define ERRTK23		-23
#define ERRTK2		-2
#define ERRTK3		-3
#define ERRTKPARAM	-4
#define ERRSELICC	-5
#define ERRSETCOMM	-6
#define TIMEOUT		-7
#define ERRCMD		-8
/////////////////////////////////////////////////////////////////////////////
// CBp8902vApp
// See bp8902v.cpp for the implementation of this class
//

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

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

	//{{AFX_MSG(CBp8902vApp)
		// 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()
};
extern "C"
{

	#define EXPORTED_DLL_FUNCTION\
	__declspec(dllexport) __stdcall

    HANDLE EXPORTED_DLL_FUNCTION InitComm(int CommPort,char * CommSetting);
    BOOL   EXPORTED_DLL_FUNCTION CloseComm(HANDLE hCommDev);
   	int    EXPORTED_DLL_FUNCTION ReadTrack(HANDLE hCommDev,int Track,char * data2,char * data3,long outtime);
	void   EXPORTED_DLL_FUNCTION SetTrackStd(HANDLE hCommDev,int Track,int std);
	void   EXPORTED_DLL_FUNCTION SetTrack2BPI(HANDLE hCommDev,int BPI);
	int    EXPORTED_DLL_FUNCTION WriteTrack(HANDLE hCommDev,int Track,char * data2,char * data3,long outtime);
	int    EXPORTED_DLL_FUNCTION ReadKeyBoard(HANDLE hCommDev,int Again,char * Keydata,long outtime);
}

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BP8902V_H__3AE7F286_D1CC_11D4_82E4_5254AB15ECA2__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?