代码拉取完成,页面将自动刷新
//////////////////////////////////////////////////////////////////////////
// Hid.cpp: interface for the CHid class. //
// ٺϵӹ //
// www.baiheee.com //
//////////////////////////////////////////////////////////////////////////
#if !defined(AFX_HID_H__A5700CF5_9580_4B1F_B9A6_5FC546E0EF3B__INCLUDED_)
#define AFX_HID_H__A5700CF5_9580_4B1F_B9A6_5FC546E0EF3B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <dbt.h>
class CHid
{
public:
HANDLE *m_hParentWnd;
BOOL m_bMyDeviceDetected;
BOOL FindHid();
void WriteHid(unsigned char ucTxBuffer[],unsigned char ucTxLength);
void WriteHidEx(HANDLE hDevice, unsigned char ucTxBuffer[],unsigned char ucTxLength);
void ReadHid(unsigned char ucDataBuffer[],unsigned char ucDataLength);
void ReadHidEx(HANDLE hDevice, unsigned char ucDataBuffer[],unsigned char ucDataLength);
CHid(HANDLE *hParenWnd);
CHid();
virtual ~CHid();
protected:
BOOL m_bDeviceNoficationRegistered;
HDEVNOTIFY m_hDevNotify; /* notification results */
public:
BOOL RegisterHidDeviceNotify(/*HWND hWnd, HDEVNOTIFY hDevNotify*/);
BOOL OpenHidDevice(HANDLE *HidDevHandle, USHORT vid, USHORT pid);
};
#endif // !defined(AFX_HID_H__A5700CF5_9580_4B1F_B9A6_5FC546E0EF3B__INCLUDED_)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。