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

  • 大小: 51KB
    文件類(lèi)型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-10
  • 語(yǔ)言: 其他
  • 標(biāo)簽: USB??插拔??檢測(cè)??

資源簡(jiǎn)介

Usb設(shè)備插拔檢測(cè), 方法:利用檢測(cè)USB設(shè)備的PID, VID的方法進(jìn)行設(shè)備識(shí)別。 1.原型在codeproject, 原來(lái)版本是vs2005, 我改成了vs6. 2. 改成vs6后,在設(shè)備串比對(duì)的地方改了下。 整理時(shí)間: 2010/06/06 20:18 用途:做gina程序時(shí),有的Key驅(qū)動(dòng)不支持多進(jìn)程訪問(wèn)。我們只在必要的地方使用Key驅(qū)動(dòng)(讀寫(xiě)Key),在檢測(cè)key狀況時(shí),不再用讀Key的方法,來(lái)判斷Key設(shè)備是否在線。減小了沖突的可能。 當(dāng)然,如果Key驅(qū)動(dòng)做的好,就不用這種檢測(cè)方法。比如HaiTai的Key.

資源截圖

代碼片段和文件信息

//?CheckSystemPlug.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“CheckSystemPlug.h“
#include?“CheckSystemPlugDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CCheckSystemPlugApp

BEGIN_MESSAGE_MAP(CCheckSystemPlugApp?CWinApp)
//{{AFX_MSG_MAP(CCheckSystemPlugApp)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CCheckSystemPlugApp?construction

CCheckSystemPlugApp::CCheckSystemPlugApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCheckSystemPlugApp?object

CCheckSystemPlugApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCheckSystemPlugApp?initialization

BOOL?CCheckSystemPlugApp::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

CCheckSystemPlugDlg?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í)間???名稱(chēng)
-----------?---------??----------?-----??----

?????文件???????1229??2010-06-06?19:58??CheckSystemPlug\CheckSystemPlug.clw

?????文件???????2189??2010-06-06?13:20??CheckSystemPlug\CheckSystemPlug.cpp

?????文件???????4321??2010-06-06?13:20??CheckSystemPlug\CheckSystemPlug.dsp

?????文件????????555??2010-06-06?13:20??CheckSystemPlug\CheckSystemPlug.dsw

?????文件???????1423??2010-06-06?13:20??CheckSystemPlug\CheckSystemPlug.h

?????文件???????5537??2010-06-06?13:25??CheckSystemPlug\CheckSystemPlug.rc

?????文件??????16721??2010-06-06?19:49??CheckSystemPlug\CheckSystemPlugDlg.cpp

?????文件???????3620??2010-06-06?19:30??CheckSystemPlug\CheckSystemPlugDlg.h

?????文件???????3741??2010-06-06?13:20??CheckSystemPlug\ReadMe.txt

?????文件??????49152??2010-06-06?20:00??CheckSystemPlug\Release\CheckSystemPlug.exe

?????文件???????9898??2010-06-06?20:02??CheckSystemPlug\Release\USB設(shè)備插拔檢測(cè)抓圖.gif

?????文件??????21630??2001-04-20?15:48??CheckSystemPlug\res\CheckSystemPlug.ico

?????文件????????407??2010-06-06?13:20??CheckSystemPlug\res\CheckSystemPlug.rc2

?????文件????????739??2010-06-06?13:24??CheckSystemPlug\resource.h

?????文件????????217??2010-06-06?13:20??CheckSystemPlug\StdAfx.cpp

?????文件???????1054??2010-06-06?13:20??CheckSystemPlug\StdAfx.h

?????目錄??????????0??2010-06-06?20:02??CheckSystemPlug\Release

?????目錄??????????0??2010-06-06?13:32??CheckSystemPlug\res

?????目錄??????????0??2010-06-06?20:01??CheckSystemPlug

-----------?---------??----------?-----??----

???????????????122433????????????????????19


評(píng)論

共有 條評(píng)論

相關(guān)資源