- 時間撮記:
- 2015-6-8 上午09:10:55 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r56251 r56268 749 749 /** 750 750 * Report versions of installed drivers to release log. 751 *752 * WARNING! This method has a side effect -- it modifies mfNDIS6.753 751 */ 754 752 void Console::i_reportDriverVersions() … … 764 762 DWORD cbVerInfo = 0; 765 763 766 /* Assume NDIS6 */767 mfNDIS6 = true;768 769 764 do 770 765 { … … 821 816 if (_tcsnicmp(TEXT("vbox"), szDriver, 4)) 822 817 continue; 823 if (_tcsnicmp(TEXT("vboxnetflt"), szDriver, 10) == 0)824 mfNDIS6 = false;825 818 } 826 819 else … … 4443 4436 } 4444 4437 4438 4439 DECLINLINE(bool) IsNdis6(void) 4440 { 4441 LogFlowFunc(("entry\n")); 4442 HANDLE hFile = CreateFile(L"\\\\.\\VBoxNetLwf", 4443 GENERIC_READ, 4444 FILE_SHARE_READ | FILE_SHARE_WRITE, 4445 NULL, 4446 OPEN_EXISTING, 4447 0, 4448 NULL); 4449 bool fNdis6 = hFile != INVALID_HANDLE_VALUE; 4450 if (fNdis6) 4451 CloseHandle(hFile); 4452 LogFlowFunc(("return %s\n", fNdis6 ? "true" : "false")); 4453 return fNdis6; 4454 } 4455 4456 4445 4457 /** 4446 4458 * Construct the Network configuration tree … … 5297 5309 5298 5310 /* The old NDIS5.1 version of driver uses TRUNKTYPE_NETADP */ 5299 trunkType = mfNDIS6? TRUNKTYPE_NETFLT : TRUNKTYPE_NETADP;5311 trunkType = IsNdis6() ? TRUNKTYPE_NETFLT : TRUNKTYPE_NETADP; 5300 5312 InsertConfigInteger(pCfg, "TrunkType", trunkType == TRUNKTYPE_NETFLT ? kIntNetTrunkType_NetFlt : kIntNetTrunkType_NetAdp); 5301 5313
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器