Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
I am a beginner.Althrough I search on MSDN, i don't know how to install ihvsample.dll and ihvsampleUI.dll.I had change my inf file based on MSDN,
but it does not work .Could someone give me some advice!
Thanks!
Posted
Updated 17-Sep-16 0:35am

From Native Wifi IHV Service[^]

Installation


General


After the sample is compiled, you must copy the binaries on to the target system and associate them
with the matching Native Wifi-capable adapter. You can copy the binaries by adding an appropriate
CopyFiles directive in the DDInstall section in the INF file for installing the adapter. You can
associate the binaries by adding an appropriate AddReg directive in the DDInstall section in the INF file
for installing the adapter.


CopyFiles Directive


The CopyFiles Directive should name a File-List-Section. The contents of this section should have the
following:


IHVSpecifiedDLLName,,,2


IHVSpecifiedOtherFile,,,2


There should be an associated entry in the DestinationDirs section that specifies the destination to
copy the file to. This section should have a directive like one of the following:


File-List-Section= 11 ; \system32 directory


DefaultDestDir= 11 ; \system32 directory


AddReg Directive


The AddReg directive should name an Add-Registry-Section.


The contents of the Miniport INF file must include the following, in order for the correct IHV Service
to be started:



  • HKR,Ndi\IHVExtensions, ExtensibilityDLL,0,"%SystemRoot%\system32\IhvExt.dll"


    This registry key is used to determine the location of the
    IHVSample.dll.


  • HKR,Ndi\IHVExtensions,UIExtensibilityCLSID,0, "<CLSID>"


    This registry key is used to determine the class ID of the COM interface that extends the 802.11
    configuration UI.


  • HKR,Ndi\IHVExtensions,GroupName,0, "IHV provided group name"


  • HKR,Ndi\IHVExtensions, AdapterOUI, 0x00010001, 0x00123456


    This registry key is used to verify the OUI when the profile is applied to the adapter. If the
    AdapterOUI value is 0x??123456 in the registry, it needs to look like the following in the profile:


    <OUIHeader>


    <OUI>123456</OUI>


    <type>??</type>


    </OUIHeader>


    Note that ?? stands for bits ignored.


  • HKR,Ndi\IHVExtensions, DiagnosticsID,0, "<Diagnostics ID GUID>"



Uninstallation Instructions


To uninstall this sample, you must undo the AddReg directive and undo the CopyFiles directive.

 
Share this answer
 
Comments
Member 12744878 17-Sep-16 6:41am    
1) How to find the ClassifierId and OUI of the adapter.

2) Is there any way to know that ihv dll is installed or not.
CSS
I am trying to run these native wifi extension samples as they are on Windows 7 along with the sample athwifi found in DDK src\networking\ndis. Driver itself is working fine. I can access wifi. But, what should happen once the DLLs are installed ? I  don't see any wlanext.exe  started. Neither do I see any UI enhancements in the profile configuration pages. DLL installation seems ok.

BTW, how do we debug these extension DLLs ? Is it wlanext.exe that we attach to or start from windbg ?

C:\>netsh wlan show drivers

Interface name: Wireless Network Connection

    Driver                    : Atheros AR5007EG Wireless Network Adapter (Sampl
e)
    Vendor                    : Atheros Communications Inc.
    Provider                  : Microsoft
    Date                      : 4/30/2009
    Version                   : 6.1.7000.0
    INF file                  : C:\Windows\INF\oem7.inf
    Files                     : 4 total
                                C:\Windows\system32\DRIVERS\athwfpci.sys
                                C:\Windows\system32\DRIVERS\athhal.sys
                                C:\Windows\system32\ihvsample.dll
                                C:\Windows\system32\IHVSampleUI.dll
    Type                      : Native Wi-Fi Driver
    Radio types supported     : 802.11g 802.11b
    FIPS 140-2 mode supported : Yes
    Hosted network supported  : Yes
    Authentication and cipher supported in infrastructure mode:
                                Open            None
                                Open            WEP-40bit
                                Shared          WEP-40bit
                                Open            WEP-104bit
                                Shared          WEP-104bit
                                Open            WEP
                                Shared          WEP
                                WPA-Enterprise  TKIP
                                WPA-Personal    TKIP
                                WPA2-Enterprise TKIP
                                WPA2-Personal   TKIP
                                WPA-Enterprise  CCMP
                                WPA-Personal    CCMP
                                WPA2-Enterprise CCMP
                                WPA2-Personal   CCMP
    Authentication and cipher supported in ad-hoc mode:
                                Open            None
                                Open            WEP-40bit
                                Open            WEP-104bit
                                Open            WEP
                                WPA2-Personal   CCMP
    IHV service present       : Yes
    IHV adapter OUI           : [12 34 56], type: [00]
    IHV extensibility DLL path: C:\Windows\system32\ihvsample.dll
    IHV UI extensibility ClSID: {4a01f9f9-6012-4343-a8c4-10b5df32672a}
    IHV diagnostics CLSID     : {4a01f9f9-6012-4343-a8c4-10b5df32672a}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900