-
大小: 73KB文件類型: .rar金幣: 2下載: 1 次發(fā)布日期: 2021-06-10
- 語言: 數(shù)據(jù)庫
- 標(biāo)簽: usb??hid??
資源簡介
無須DDK編譯的usb 訪問HID設(shè)備的源碼 可以訪問HID設(shè)備(除鼠標(biāo),鍵盤被系統(tǒng)占用)-usb access sound code of HID device ,can access HID device(except mouse and keyboard are occured with system )

代碼片段和文件信息
//?HIDRW.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“HIDRW.h“
#include?“HIDRWDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CHIDRWApp
BEGIN_MESSAGE_MAP(CHIDRWApp?CWinApp)
//{{AFX_MSG_MAP(CHIDRWApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CHIDRWApp?construction
CHIDRWApp::CHIDRWApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CHIDRWApp?object
CHIDRWApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CHIDRWApp?initialization
BOOL?CHIDRWApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CHIDRWDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????4473??2005-07-28?11:07??HIDRW\HIDRW.dsp
?????文件???????6086??2005-07-31?18:22??HIDRW\HIDRW.rc
?????文件??????21204??2009-02-07?09:37??HIDRW\HIDRW.APS
?????文件??????14951??2005-07-31?19:10??HIDRW\HIDRWDlg.cpp
?????文件???????1854??2009-02-07?09:39??HIDRW\HIDRW.clw
?????文件???????3561??2005-07-27?20:15??HIDRW\ReadMe.txt
?????文件???????1313??2005-07-27?20:15??HIDRW\HIDRW.h
?????文件???????2049??2005-07-27?20:15??HIDRW\HIDRW.cpp
?????文件????????913??2005-07-31?16:41??HIDRW\Resource.h
?????文件???????1054??2005-07-27?20:15??HIDRW\StdAfx.h
?????文件????????207??2005-07-27?20:15??HIDRW\StdAfx.cpp
?????文件????????397??2005-07-27?20:15??HIDRW\res\HIDRW.rc2
?????文件???????1078??2005-07-27?20:15??HIDRW\res\HIDRW.ico
?????文件???????1855??2005-07-31?18:21??HIDRW\HIDRWDlg.h
?????文件????????533??2005-07-27?20:15??HIDRW\HIDRW.dsw
?????文件??????58368??2009-02-07?09:39??HIDRW\HIDRW.ncb
?????文件???????4366??2009-02-07?09:39??HIDRW\HIDRW.plg
?????文件??????11394??1999-09-25?03:48??HIDRW\hid.lib
?????文件?????151818??2000-06-14?00:55??HIDRW\setupapi.lib
?????文件??????12124??2008-09-27?08:48??HIDRW\hidsdi.h
?????文件??????11305??2008-09-27?08:48??HIDRW\hidusage.h
?????文件??????80543??2008-09-27?08:48??HIDRW\hidpi.h
?????文件??????49664??2009-02-07?09:39??HIDRW\HIDRW.opt
?????文件?????114747??2009-02-07?09:39??HIDRW\HIDRW.exe
?????目錄??????????0??2005-07-27?20:15??HIDRW\res
?????目錄??????????0??2005-07-27?20:15??HIDRW\Debug
?????目錄??????????0??2005-07-27?20:15??HIDRW
-----------?---------??----------?-----??----
???????????????555857????????????????????27
............此處省略0個(gè)文件信息
- 上一篇:SQL注入用例及XSS用例
- 下一篇:litepal
評(píng)論
共有 條評(píng)論