資源簡介
通過SMART獲取硬盤序列號等信息的C++源碼,可通過VS2015編譯通過,可在win10下使用。來自CodeProject。

代碼片段和文件信息
//?SMART.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“SMART.h“
#include?“SMARTDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CSMARTApp
BEGIN_MESSAGE_MAP(CSMARTApp?CWinApp)
//{{AFX_MSG_MAP(CSMARTApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CSMARTApp?construction
CSMARTApp::CSMARTApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CSMARTApp?object
CSMARTApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CSMARTApp?initialization
BOOL?CSMARTApp::InitInstance()
{
//?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
CSMARTDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-12-27?11:16??SMART\
?????目錄???????????0??2018-12-27?09:57??SMART\.vs\
?????目錄???????????0??2018-12-27?09:57??SMART\.vs\SMART\
?????目錄???????????0??2018-12-27?09:57??SMART\.vs\SMART\v14\
?????文件???????32768??2018-12-27?11:16??SMART\.vs\SMART\v14\.suo
?????目錄???????????0??2018-12-27?09:57??SMART\Backup\
?????文件?????????899??2006-03-27?20:24??SMART\Backup\SMART.sln
?????目錄???????????0??2006-04-03?09:09??SMART\DDKInclude\
?????文件????????8581??2001-08-17?13:12??SMART\DDKInclude\af_irda.h
?????文件????????1101??2001-08-17?13:12??SMART\DDKInclude\atsmedia.h
?????文件???????10841??2001-08-17?13:12??SMART\DDKInclude\batclass.h
?????文件???????54545??2001-08-17?13:12??SMART\DDKInclude\bdamedia.h
?????文件???????15488??2001-08-17?13:12??SMART\DDKInclude\bdatypes.h
?????文件???????51680??2001-08-17?13:12??SMART\DDKInclude\bugcodes.h
?????文件???????11190??2001-08-17?13:12??SMART\DDKInclude\cfg.h
?????文件??????105582??2001-08-17?13:12??SMART\DDKInclude\cfgmgr32.h
?????文件??????168204??2001-08-17?13:12??SMART\DDKInclude\compstui.h
?????文件???????56693??2001-08-17?13:12??SMART\DDKInclude\d3dnthal.h
?????文件???????12595??2001-08-17?13:12??SMART\DDKInclude\ddkmapi.h
?????文件??????140805??2001-08-17?13:12??SMART\DDKInclude\ddrawi.h
?????文件???????88984??2001-08-17?13:12??SMART\DDKInclude\ddrawint.h
?????文件????????5197??2001-08-17?13:12??SMART\DDKInclude\devioctl.h
?????文件???????32946??2001-08-17?13:12??SMART\DDKInclude\dinputd.h
?????文件????????1677??2001-08-17?13:12??SMART\DDKInclude\DISKGUID.H
?????文件????????9304??2001-08-17?13:12??SMART\DDKInclude\dls1.h
?????文件????????4857??2001-08-17?13:12??SMART\DDKInclude\dls2.h
?????文件????????7540??2001-08-17?13:12??SMART\DDKInclude\dmdls.h
?????文件????????6417??2001-08-17?13:12??SMART\DDKInclude\dmemmgr.h
?????文件???????27282??2001-08-17?13:12??SMART\DDKInclude\dmerror.h
?????文件????????5382??2001-08-17?13:12??SMART\DDKInclude\dmksctrl.h
?????文件????????1780??2001-08-17?13:12??SMART\DDKInclude\dmusbuff.h
............此處省略182個文件信息
- 上一篇:TYbCommDevice
- 下一篇:vc++MFC畫彩色五角星
評論
共有 條評論