📄 imsidlg.h
字号:
// IMSIDlg.h : header file
//
#pragma once
#pragma comment(lib, "cellcore.lib")
#include <tapi.h>
#include <extapi.h>
#include <tsp.h>
#include <string>
using namespace std;
#define TAPI_API_LOW_VERSION 0x00010003
#define TAPI_CURRENT_VERSION 0x00020000
#define EXT_API_LOW_VERSION 0x00010000
#define EXT_API_HIGH_VERSION 0x00010000
struct MyGeneralInfo
{
wstring Manufacturer;
wstring Model;
wstring Revision;
wstring SerialNumber;
wstring SubscriberNumber;
};
// CIMSIDlg dialog
class CIMSIDlg : public CDialog
{
// Construction
public:
CIMSIDlg(CWnd* pParent = NULL); // standard constructor
MyGeneralInfo mygenralinfo;
// Dialog Data
enum { IDD = IDD_IMSI_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButton1();
private:
DWORD m_dwNumDevs;
DWORD m_dwAPIVersion;
HLINEAPP m_hLineApp;
HLINE m_hLine;
DWORD m_dwExtVersion;
DWORD m_dwTSPILineDeviceID;
public:
LPTSTR tsManufacturer, tsModel, tsRevision, tsSerialNumber, tsSubscriberNumber;
CString sInfo;
public:
BOOL GetHWInfo(MyGeneralInfo& mygenralinfo);
public:
DWORD GetTSPLineDeviceID(const TCHAR* const psTSPLineName);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -