⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scsampledlg.h

📁 运用PCSC接口函数写的APDU工具
💻 H
字号:
// SCSampleDlg.h : header file
//

#if !defined(AFX_SCSAMPLEDLG_H__A195A407_DD92_11D5_9A4A_5254AB354C40__INCLUDED_)
#define AFX_SCSAMPLEDLG_H__A195A407_DD92_11D5_9A4A_5254AB354C40__INCLUDED_

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

#define NUMBER_OF_READERS	4
#define NAME_LENGTH			100
#define MAX_INPUT			1024
#define MAX_OUTPUT			4*1024
#define MAX_RESPONSE		2*1024

/////////////////////////////////////////////////////////////////////////////
// CSCSampleDlg dialog

class CSCSampleDlg : public CDialog
{
// Construction
public:
	CSCSampleDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSCSampleDlg)
	enum { IDD = IDD_SCSAMPLE_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSCSampleDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	CString			MessageBuffer;
	long			ret;
	
	PBYTE			pInBuffer;
	long			InBufferLength;

	PBYTE			pOutBuffer;
	int				OutBufferLine;
	short      		line;

	short			act_Name;
	short			Count;
	char			*Name;
	short			GetDriverName(void) { return act_Name; };
	void			SetCount(short act_Count) { Count = act_Count; };
	void			SetName(char *Act_Name) { Name = Act_Name; };

	short			ReaderCount;
	char			ReaderName[NUMBER_OF_READERS][NAME_LENGTH];
	PBYTE			pResponseBuffer;
	unsigned long	ResponseLength;
	long			ProtocolType;

	void	UpdateMouseDisplay(void);
	short	AToHex(char *mhstr, BYTE *buf);
	void	GetErrorCode(long ret);
	void    APDUCommand(CString csAPDU);

	void    EnableButton(BOOL bFlag);

	// Generated message map functions
	//{{AFX_MSG(CSCSampleDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCardConnect();
	afx_msg void OnCardDisconnect();
	afx_msg void OnTransmit();
	virtual void OnCancel();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSelchangeDriverName();
	afx_msg void OnGetAttribute();
	afx_msg void OnGetRandom();
	afx_msg void OnClearCard();
	afx_msg void OnCreateMf();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SCSAMPLEDLG_H__A195A407_DD92_11D5_9A4A_5254AB354C40__INCLUDED_)

⌨️ 快捷键说明

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