91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 120KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-08
  • 語言: 其他
  • 標(biāo)簽: HID??USB??

資源簡介

對HID設(shè)備進(jìn)行讀寫的例子,給新手一個參考

資源截圖

代碼片段和文件信息

‘//--------------------------------------------------------------------------
//
//?USB?HID?Device?and?USB?HID?Device?Manager?Helper?Classes
//
//?The?building?blocks?for?this?code?was?derived?from?the?HCLIENT?sample?code
//?provided?by?Microsoft?in?the?Windows?XP?DDK.??
//
//--------------------------------------------------------------------------
//?$Archive:?/WirelessUSB/LS2/Firmware/LP?KBM?RDK/Software/Source?Code/CUSBHidAPI/HidAPI.cpp?$
//?$Modtime:?10/01/04?2:03p?$
//?$Revision:?2?$
//--------------------------------------------------------------------------
//
//?Copyright?2003-2004?Cypress?Semiconductor?Corporation.
//
//?This?software?is?owned?by?Cypress?Semiconductor?Corporation?(Cypress)
//?and?is?protected?by?and?subject?to?worldwide?patent?protection?(United
//?States?and?foreign)?United?States?copyright?laws?and?international
//?treaty?provisions.?Cypress?hereby?grants?to?licensee?a?personal
//?non-exclusive?non-transferable?license?to?copy?use?modify?create
//?derivative?works?of?and?compile?the?Cypress?Source?Code?and?derivative
//?works?for?the?sole?purpose?of?creating?custom?software?in?support?of
//?licensee?product?to?be?used?only?in?conjunction?with?a?Cypress?integrated
//?circuit?as?specified?in?the?applicable?agreement.?Any?reproduction
//?modification?translation?compilation?or?representation?of?this
//?software?except?as?specified?above?is?prohibited?without?the?express
//?written?permission?of?Cypress.
//
//?Disclaimer:?CYPRESS?MAKES?NO?WARRANTY?OF?ANY?KIND?EXPRESS?OR?IMPLIED
//?WITH?REGARD?TO?THIS?MATERIAL?INCLUDING?BUT?NOT?LIMITED?TO?THE?IMPLIED
//?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE.
//?Cypress?reserves?the?right?to?make?changes?without?further?notice?to?the
//?materials?described?herein.?Cypress?does?not?assume?any?liability?arising
//?out?of?the?application?or?use?of?any?product?or?circuit?described?herein.
//?Cypress?does?not?authorize?its?products?for?use?as?critical?components?in
//?life-support?systems?where?a?malfunction?or?failure?may?reasonably?be
//?expected?to?result?in?significant?injury?to?the?user.?The?inclusion?of
//?Cypress?product?in?a?life-support?systems?application?implies?that?the
//?manufacturer?assumes?all?risk?of?such?use?and?in?doing?so?indemnifies
//?Cypress?against?all?charges.
//
//?Use?may?be?limited?by?and?subject?to?the?applicable?Cypress?software
//?license?agreement.
//
//--------------------------------------------------------------------------
#include?“StdAfx.h“
#include?

#include?“hidapi.h“


#define?HIDMANAGER_CLASS?_T(“CHidManager“)
CHidManager*?CHidManager::m_pThis?=?NULL;
OSVERSIONINFO?m_OS;

bool?CHidDevice::InitializeHidDevice(PCHAR?pDevicePath?USHORT?uID)
{
nextHidDevice?=?NULL;

m_bOpened?=?false;

m_hDevice?=?NULL;
m_hDeviceRegistered?=?NULL;
m_hWnd?=?NULL;

m_bOpenedForRead?=?false;
m_bOpenedForWrite?=?false;
m_bOpenedOverlapped?=?false;
m

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1078??2002-01-31?21:36??HID讀寫\res\USBPort.ico

?????文件????????399??2002-01-31?21:36??HID讀寫\res\USBPort.rc2

?????目錄??????????0??2007-04-28?13:08??HID讀寫\res

?????文件???????5649??2007-04-23?15:40??HID讀寫\UsbPort\UsbPort.vcproj

?????文件???????2763??2007-05-22?14:44??HID讀寫\UsbPort\ReadMe.txt

?????文件???????4091??2007-04-28?12:57??HID讀寫\UsbPort\UsbPortDlg.h

?????文件??????12384??2006-12-19?00:00??HID讀寫\UsbPort\hid.lib

?????文件??????14555??2007-03-25?15:00??HID讀寫\UsbPort\hidsdi.h

?????文件???????2489??2007-04-17?15:07??HID讀寫\UsbPort\stdafx.h

?????文件????????138??2007-04-17?15:07??HID讀寫\UsbPort\stdafx.cpp

?????文件???????1414??2007-06-28?23:38??HID讀寫\UsbPort\UsbPort.vcproj.SCYCLONE.Administrator.user

?????文件????????707??2007-04-28?12:04??HID讀寫\UsbPort\UsbPort.h

?????文件??????80543??2006-12-19?00:00??HID讀寫\UsbPort\hidpi.h

?????文件??????11305??2006-12-19?00:00??HID讀寫\UsbPort\hidusage.h

?????文件?????194084??2005-04-14?17:54??HID讀寫\UsbPort\SetupAPI.h

?????文件???????9440??2007-04-28?12:11??HID讀寫\UsbPort\UsbPortDlg.cpp

?????文件?????142498??2005-04-14?17:56??HID讀寫\UsbPort\SetupAPI.Lib

?????文件???????6306??2007-04-28?12:59??HID讀寫\UsbPort\UsbPort.rc

?????文件???????1184??2007-04-27?19:07??HID讀寫\UsbPort\Resource.h

?????文件???????1020??2007-04-23?12:54??HID讀寫\UsbPort\UsbPort.sln

?????文件???????9929??2007-04-19?13:32??HID讀寫\UsbPort\HidAPI.h

?????文件??????66361??2007-04-19?13:21??HID讀寫\UsbPort\HidAPI.cpp

????..A..H.?????87552??2007-06-28?23:38??HID讀寫\UsbPort\UsbPort.suo

?????文件??????24808??2007-06-28?19:58??HID讀寫\UsbPort\UsbPort.aps

?????文件???????1427??2007-04-28?12:59??HID讀寫\UsbPort\UsbPort.vcproj.USER-C9B7CF26E5.Administrator.user

?????文件???????1849??2007-04-28?12:04??HID讀寫\UsbPort\UsbPort.cpp

?????文件????????363??2007-04-17?15:07??HID讀寫\UsbPort\res\UsbPort.rc2

?????文件???????3262??2007-04-17?15:27??HID讀寫\UsbPort\res\UsbPort.ico

?????目錄??????????0??2007-04-28?13:08??HID讀寫\UsbPort\res

?????目錄??????????0??2007-04-28?13:08??HID讀寫\UsbPort\Debug

............此處省略7個文件信息

評論

共有 條評論