📄 simdlg.h
字号:
//SIMDlg.h : interface of the CSIMDlg class
//
/////////////////////////////////////////////////////////////////////////////
#include <simmgr.h>
#include <atlstr.h>
#pragma once
class CSIMDlg : public CDialogImpl<CSIMDlg>
{
public:
enum { IDD = IDD_SIMDLG };
BEGIN_MSG_MAP(CSIMDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(ID_READSIM, onMenuReadSim)
COMMAND_ID_HANDLER(ID_EXIT, OnMenuExit)
COMMAND_HANDLER(IDC_BUTTON_SAVE, BN_CLICKED, OnBnClickedButtonSave)
COMMAND_HANDLER(IDC_BUTTON_INFO, BN_CLICKED, OnBnClickedButtonInfo)
END_MSG_MAP()
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT onMenuReadSim(UINT /*uMsg*/, WPARAM /*wParam*/, HWND /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnMenuExit(UINT /*uMsg*/, WPARAM /*wParam*/, HWND /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnBnClickedButtonSave(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnBnClickedButtonInfo(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
void ReadSIM(HSIM /*hSim*/, DWORD /*dwAddress*/, DWORD /*dwRecordType*/, DWORD /*dwIndex*/, LPBYTE /*lpData*/, DWORD /*dwBufferSize*/);
CString OutPutString_T(CListBox /*listBox*/, LPBYTE /*lpData*/, DWORD /*dwBufferSize*/);
CString OutPutString_LC(CListBox /*listBox*/, LPBYTE /*lpData*/, DWORD /*dwDownBound*/, DWORD /*dwUpBound*/, DWORD /*dwSize*/);
void ErrorHandle(HRESULT /*result*/);
private:
HSIM m_hSim; //Points to a valid HSIM handle
SIMCAPS m_simcaps; //Capabilities structure
DWORD m_dwAddress; //SIM address
DWORD m_predwAddress;
LPDWORD m_lpdwBytesRead;//Number of bytes read
HRESULT m_result; //HRESULTs are either S_OK for success, or one of the SIM_E error
LPBYTE m_lpData; //Data buffer to store the content of the SIM file
DWORD m_dwBufferSize; //The size of the "m_lpData"
CString m_csFileStr; //Content of the file
DWORD m_dwFileSize; //The length of the string displayed in SIM_File.txt
DWORD m_dwRecordType, m_dwItemCount, m_dwSize; //The information of the record
CString m_csFileName; //The string of file ID
TCHAR m_tcFileID[5];
DWORD m_dwFileIDLen;
HANDLE m_hFile; //An open handle to the specified file
LPCTSTR m_lpFileID; //Pointer to a null-terminated string that specifies the name of the object
SIMRECORDINFO m_SimRecordInfo; //Contains information about a particular SIM file
int iTag; //Insure to click the 'Get Info' first
int myTag; //To avoid write the same content to the file
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -