博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助
隐藏
yexin218.cublog.cn
VirtualWiFi安装后无法添加新的网络连接
Following are the prerequisites for using VirtualWiFi:
  • You should have administrative rights to install drivers and services on your machine.
  • Copy the VirtualWiFi binaries. The directory will have the following files:
  • VirtualWiFi.exe: This is the main installer file
  • vwifi.sys: This is the VirtualWiFi driver
  • vwifi.dll: This is the notify object dll for controlling the bindings of the VirtualWiFi driver
  • vwifip.inf, vwifi_mp.inf: These are setup files for the VirtualWiFi driver
  • VirtualWiFiSvc.exe: This is the file corresponding to the VirtualWiFi Service
  • VirtualWiFihelper.exe: This is a utility file for checking the correctness of VirtualWiFi
  • Set Wireless Zero Configuration Service (WZC) in manual mode, stop it using "net stop wzcsvc" and disable other wireless adapter utilities.
  • Make sure you have only one wireless card in your computer. Note, disabling one of the wireless adapters will not work!
  • Make sure your wireless card is associated to a network.
  • Note that VirtualWiFi will NOT work with WEP and 802.1X.
  • Ensure that the device name of your wireless adapter has at least one of the following keywords: "cisco", "orinoco", "netgear", "wlan" or "wireless". If it does not, then refer to FAQ.
  • 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’更改成"本地连接”如果你使用中文操作系统。这样重新编译代码就可以解决问题了。

    -----------------------------------

     TAG VirtualWiFi
    发表于: 2008-02-27,修改于: 2008-05-12 16:56,已浏览786次,有评论1条 推荐 投诉
    网友: yexin218 时间:2008-04-30 16:59:56 IP地址:202.175.101.★
    现在我知道了,原来默认的是英文系统的,我的简体中文的,所以需要在源码中修改==》localarea=》本地连接。有时间补上


    给我留言
    版权所有 ChinaUnix.net 页面生成时间:0.02833