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

資源簡(jiǎn)介

用VC++實(shí)現(xiàn)的驅(qū)動(dòng)安裝的示例工程源碼,通過(guò)Windows API函數(shù)執(zhí)行inf文件完成驅(qū)動(dòng)安裝

資源截圖

代碼片段和文件信息

#include?“stdafx.h“
#include?“CommonHeaders.h“
//
//#ifdef?_DEBUG
//#define?LOGMESSAGE(?str?)?printf??str;
//#else?
//#define?LOGMESSAGE(str)
//#endif
//
//DEFINE_GUID(BTHSCO_DRV_SVC_GUID
// 0x84161aa4?0xa08b?0x4f44?0xb2?0x7a?0x87?0x59?0xff?0x9e?0x1?0x7b);
//
////DEFINE_GUID(BTHECHOSAMPLE_SVC_GUID?0xc07508f2?0xb970?0x43ca?0xb5?0xdd?0xcc?0x4f?0x23?0x91?0xbe?0xf6);
//extern?__declspec(selectany)?const?PWSTR?BthScoDrvSvcName?=?L“BthHFPScoDrv“;
//
////
////?Device?interface?exposed?by?our?bth?client?device
////
//
///*?fc71b33d-d528-4763-a86c-78777c7bcd7b?*/
//DEFINE_GUID(BTHSCO_DRV_DEVICE_INTERFACE?0xfc71b33d?0xd528?0x4763?0xa8?0x6c?0x78?0x77?0x7c?0x7b?0xcd?0x7b);
//
//
//DEFINE_GUID(BTHA2DPSINK_SVC_GUID
// 0xa917b940?0x8d50?0x41a4?0xaa?0xed?0xf9?0x9a?0xf3?0xec?0x41?0x39);
//
////DEFINE_GUID(BTHECHOSAMPLE_SVC_GUID?0xc07508f2?0xb970?0x43ca?0xb5?0xdd?0xcc?0x4f?0x23?0x91?0xbe?0xf5);
//extern?__declspec(selectany)?const?PWSTR?BthA2DPSinkSvcName?=?L“BthA2DPSink“;
//
////
////?Device?interface?exposed?by?our?bth?client?device
////
//
///*?fc71b33d-d528-4763-a86c-78777c7bcd7b?*/
//DEFINE_GUID(BTHA2DPSINK_DEVICE_INTERFACE?0xfc71b33d?0xd528?0x4763?0xa8?0x6c?0x78?0x77?0x7c?0x7b?0xcd?0x7c);
//
//#ifndef?ARRAY_SIZE
//#define?ARRAY_SIZE(X)?(sizeof(X)?/?sizeof(*X))
//#endif
//
//static?VOID?__cdecl
//LogCallback(
//DIFXAPI_LOG?Event
//DWORD?Error
//const?TCHAR?*?pEventDescription
//PVOID?CallbackContext
//);
//
//BOOL
//AdjustProcessPrivileges();
//
//DWORD?SetBthScoServiceInfo(
// BOOLEAN?bEnabled
// );
//
//DWORD?SetBthA2DPSinkServiceInfo(
// BOOLEAN?bEnabled
// );
//
//int?UpadateProfileDrivers(TCHAR?*?InfPath?TCHAR?Option?DWORD?Flags);
//
//int?InstallProfileDriver(LPTSTR?profileDrvArg?DWORD?Flags)
//{
// UNREFERENCED_PARAMETER(profileDrvArg);
// TCHAR?*?A2dpInfPath?=?L“BthA2DPSink.inf“;
// TCHAR?*?ScoInfPath?=?L“BthHFPScoDrv.inf“;
// TCHAR?InstallOption?=?TEXT(‘i‘);
// TCHAR?UnInstallOption?=?TEXT(‘u‘);
//
// if?(_tcscmp(profileDrvArg?_T(CMD_ADD_A2DP_SCO_PROFILE))?==?0)
// {
// if?(UpadateProfileDrivers(A2dpInfPath?InstallOption?Flags))
// {
// return?UpadateProfileDrivers(ScoInfPath?InstallOption?Flags);
// }
// else?{
// return?0;
// }
// }
// else?if?(_tcscmp(profileDrvArg?_T(CMD_ADD_A2DP_PROFILE))?==?0)
// {
// return?UpadateProfileDrivers(A2dpInfPath?InstallOption?Flags);
// }
// else?if?(_tcscmp(profileDrvArg?_T(CMD_ADD_SCO_PROFILE))?==?0)
// {
// return?UpadateProfileDrivers(ScoInfPath?InstallOption?Flags);
// }
// else?if?(_tcscmp(profileDrvArg?_T(CMD_REMOVE_A2DP_SCO_PROFILE))?==?0)
// {
// if?(UpadateProfileDrivers(A2dpInfPath?UnInstallOption?Flags))
// {
// return?UpadateProfileDrivers(ScoInfPath?UnInstallOption?Flags);
// }
// else?{
// return?0;
// }
// }
// else?if?(_tcscmp(profileDrvArg?_T(CMD_REMOVE_A2DP_PROFILE))?==?0)
// {
// return?Up

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-03?10:15??InstallDriverTest\
?????目錄???????????0??2017-05-02?16:00??InstallDriverTest\Debug\
?????文件??????158720??2017-05-02?17:20??InstallDriverTest\Debug\InstallDriverTest.exe
?????文件?????1029648??2017-05-02?17:20??InstallDriverTest\Debug\InstallDriverTest.ilk
?????文件?????6171648??2017-05-02?17:20??InstallDriverTest\Debug\InstallDriverTest.pdb
?????目錄???????????0??2017-05-02?16:08??InstallDriverTest\InstallDriverTest\
?????文件?????????918??2017-05-02?15:22??InstallDriverTest\InstallDriverTest.sln
?????文件???????22016??2017-05-02?19:25??InstallDriverTest\InstallDriverTest.suo
?????文件???????11808??2017-05-02?15:48??InstallDriverTest\InstallDriverTest\addprofiledriver.cpp
?????文件????????1064??2016-08-01?14:49??InstallDriverTest\InstallDriverTest\addprofiledriver.h
?????文件?????????761??2017-05-02?15:32??InstallDriverTest\InstallDriverTest\CommonHeaders.h
?????目錄???????????0??2017-05-03?10:15??InstallDriverTest\InstallDriverTest\Debug\
?????文件????????4540??2010-02-08?17:33??InstallDriverTest\InstallDriverTest\difxapi.lib
?????目錄???????????0??2017-05-02?16:08??InstallDriverTest\InstallDriverTest\Drv\
?????文件??????????37??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\Version.cfg
?????目錄???????????0??2017-05-02?16:08??InstallDriverTest\InstallDriverTest\Drv\WinUSB\
?????目錄???????????0??2017-05-02?16:08??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\
?????文件?????1490656??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\WdfCoInstaller01007.dll
?????文件?????1718424??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\WdfCoInstaller01009.dll
?????文件??????708168??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\WinUSBCoInstaller.dll
?????文件??????999576??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\winusbcoinstaller2.dll
?????文件?????1533512??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\WUDFUpdate_01007.dll
?????文件?????2149016??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\amd64\WUDFUpdate_01009.dll
?????目錄???????????0??2017-05-02?16:08??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\
?????文件?????1112288??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\WdfCoInstaller01007.dll
?????文件?????1458840??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\WdfCoInstaller01009.dll
?????文件??????581192??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\WinUSBCoInstaller.dll
?????文件??????848024??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\winusbcoinstaller2.dll
?????文件?????1302600??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\WUDFUpdate_01007.dll
?????文件?????1834136??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\i386\WUDFUpdate_01009.dll
?????文件???????12017??2017-03-31?17:15??InstallDriverTest\InstallDriverTest\Drv\WinUSB\wtptp_winusb_amd64.cat
............此處省略19個(gè)文件信息

評(píng)論

共有 條評(píng)論