Following are the prerequisites for using VirtualWiFi:
To
install VirtualWiFi, open the command prompt, go to the directory where you unzipped the VirtualWiFi binaries, and type:
"VirtualWiFi install" Remember to press "Continue" if prompted for driver signing. If you face problems, refer to the
VirtualWiFi installation FAQ.
To
uninstall VirtualWiFi, open the command prompt, go to the directory where you unzipped the VirtualWiFi binaries, and type:
"VirtualWiFi uninstall"Note that the wireless card over which you installed VirtualWiFi should be plugged in and enabled for uninstall to be successful.
以上就是安装步骤。
安装之后可以出现多了一个网络连接为VirtualWiFi Miniport Driver的。

可是按照说明书应该在关联网络之后就会把名字“本地连接5”改成相应的SSID。可是这里没有。不知道是网卡不行还是其他原因。本本为IBM-T43的。
而且在使用命令行virtualwifi addnetwork添加新的网络的时候出错了:
可是却可以查询当前的连接的SSID:

事情就是很奇怪啦,我同学的电脑都可以正确安装使用,实验室的外插无线usb网卡也可以实现。没有找到什么原因?不知道有没有朋友知道,帮个忙!
---------->经过一段时间时间的折腾,我同学终于发现了原因所在了:
原来是源代码由美国人写的,他们用的是英文操作系统,而我们用的是中文系统。而代码中看着一段重命名的:
|
if ( hr == S_OK ) { hr = pConMan->EnumConnections( NCME_DEFAULT, &pEnumCon );
if ( hr == S_OK ) {
while(!gotAdapter) { hr = pEnumCon->Next( 1, &pCon, &count );
if (hr == S_OK) { hr = pCon->GetProperties( &pConProps ); if (Verbose) { wprintf(L"Device Name is %s\n", pConProps->pszwName); wprintf(L"Adapter Name is %s\n", pConProps->pszwDeviceName); } if (( wcsstr( pConProps->pszwName, L"Local Area" ) != NULL )//这里需要改成“本地连接”如果你使用中文系统 && (wcsstr( pConProps->pszwDeviceName, L"VirtualWiFi" ))) { gotAdapter = TRUE; if (Verbose) printf("Found Adapter\n"); hr = pCon->Rename(ConnectionName); if (hr == S_OK) { if (Verbose) printf("Rename Successful\n"); } else { printf("Could not rename the connection! \n"); } } } else break; } } else { printf("EnumConnections failed."); } pConMan->Release(); }
|
正如代码中说注释的,需要把‘Local Area’更改成"本地连接”如果你使用中文操作系统。这样重新编译代码就可以解决问题了。
-----------------------------------