📄 m3usbfun.h.svn-base
字号:
//M3USBFUN.H: Main header file for the M3USBC Application
#ifndef __M3USBFUN_H__
#define __M3USBFUN_H__
#include <cfgmgr32.h>
#include <setupapi.h>
class CM3USBC
{
private:
public:
HANDLE M3USB_HD;
DEVINST DevInst; //device instance handle
public:
CM3USBC();
~CM3USBC();
bool M3USBOPEN();
bool M3USBOPEN(CString dbcc_name);
bool M3USBREAD(BYTE* rbuf, int rbufcount, int *read_count);
bool M3USBWRITE(BYTE* wbuf, int wbufcount);
bool M3USB_DOWNLOAD(BYTE* down_buf, UINT down_count, UINT *downed_count );
bool M3USB_UPLOAD(BYTE* upload_buf, UINT upload_count, UINT *uploaded_count );
bool M3USBDeviceIo(BYTE* obuf, int obufcount);
bool M3USBCLOSE();
HANDLE Get_M3USBHandle();
protected:
bool M3USBOPENQUICK(SP_DEVINFO_DATA &spdd, CString &m3devicepath);
bool M3USBCLOSEQUICK(SP_DEVINFO_DATA spdd);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -