📄 chiddevice.h
字号:
//*****************************************************************
// ===================================================
// 南 太 电 子 (深圳) 公 司
// ===================================================
// Copyright (C) 2005-2010 Namtai
//
// 软件名称: Buzz Test
// 模 块 名: CHIDDevice.h
// 使用语言: VC6.0
// 原设计人: 诸葛炼
// 设计日期: 2005.3
// 更改纪录:
// ===================================================
// | 更改日期 | 更 改 人 | 更 改 说 明 |
// ===================================================
// | | | |
// | | | |
// ===================================================
// 内容摘要 : 读写HID设备的头文件
// 备 注 :
//*****************************************************************
// UsbDevice.h : header file
#ifndef CHIDDevice_h
#define CHIDDevice_h
#include <afx.h>
extern "C"
{
#include "hidsdi.h"
#include <setupapi.h>
}
class CHIDDevice
{
// Construction
public:
HDEVNOTIFY RegisterNotificationHandle(HWND Reghandle);
BOOL Close();
HANDLE DeviceHandle;
HDEVNOTIFY RegisterNotificationInterface(HWND handle);
BOOL Prepare();
UINT SendData(UCHAR* sSendData);
UINT ReceiveData(UCHAR* sReceiveData);
CHIDDevice();
~CHIDDevice();
protected:
BOOL IsOurProduct();
HIDP_CAPS Capabilities;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPTION_H__8F373901_D454_11D5_AE3F_00D0092CBA48__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -