how to install upper filter driver for Usb video class

Discussion in 'Windows Vista Drivers' started by Steve, Aug 9, 2007.

  1. Steve

    Steve Guest

    Hi all,

    I am a new hand for development of device drivers.

    I met with a problem, when I write a simple inf for installing upper filter
    driver.

    When I install the inf from control panel' adding hardward program,

    I encountered an error: the location can not contain the hardware-related
    information.

    Is anyone know the reason of error ? Thanks.
    If anyone have experience about upper filter driver for USB video class,
    Could you kindly share you experience with me?


    ======================================
    Below is the inf.

    ;/*++
    ;
    ;Copyright (c) 1990-1999 Microsoft Corporation All rights Reserved
    ;
    ;Module Name:
    ;
    ; usbCameraFilter.INF
    ;
    ;Abstract:
    ; INF file for installing usbCameraFilter filter drivers
    ;--*/
    [Version]
    Signature="$WINDOWS NT$"
    ;Class=Camerafilter
    ;ClassGuid={B85B7C50-6A01-11d2-B841-00C04FAD5171}
    Class=USB
    ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
    Provider=%MSFT%
    DriverVer=09/21/2006,6.0.5736.1
    CatalogFile=usbCamerafilter.cat

    [DestinationDirs]
    DefaultDestDir = 12

    [SourceDisksNames]
    1 = %DiskId1%,,,""

    ;*****************************************
    ; usbCameraFilter Device Filter Install Section
    ;*****************************************

    [Manufacturer]
    %StdMfg%=Standard

    [Standard]
    ; DisplayName Section DeviceId
    ; ----------- ------- --------
    %usbCameraFilter.DeviceDesc%=usbCameraFilter,
    {b85b7c50-6a01-11d2-b841-00c04fad5171}\usbCameraFilter

    ;=====================================================================

    ;[ClassInstall32]
    ;Addreg=ToasterClassReg
    ;CopyFiles=usbCameraFilter.NT.Copy
    ;AddReg=usbCameraFilter.NT.AddReg

    [usbCameraFilter.NT]
    ;=============== Get the standard stuff from Toaster.inf==============
    CopyFiles=usbCameraFilter.NT.Copy
    AddReg=usbCameraFilter.NT.AddReg
    ;AddReg=usbCameraFilter.NT.HW.AddReg

    [usbCameraFilter.NT.Copy]
    usbCameraFiltr.sys

    [usbCameraFilter.NT.AddReg]
    ; Add registry entries here
    HKR,,"UperFilter",0x00010000,"usbCameraFilter"

    [usbCameraFilter.NT.HW]
    ;================ Add our own stuff
    AddReg = usbCameraFilter.NT.HW.AddReg

    ;================ Add in the standard stuff provided by Toaster
    ;Include = toaster.inf
    ;Needs = Toaster_Device.NT.HW



    [usbCameraFilter.NT.HW.AddReg]
    HKR,,"UperFilter",0x00010000,"usbCameraFilter"

    ;*****************************************
    ; usbCameraFilter Device Filter Service Section
    ;*****************************************

    [usbCameraFilter.NT.Services]
    ;Do not specify SPSVCINST_ASSOCSERVICE on filter drivers.
    AddService = usbvideo,0x00000002,USBVideo.ServiceInstall
    AddService = usbCameraFilter,, filter_Service_Inst
    ;
    ;=========== This will add toaster as the service and make sure =====
    ;=========== that toaster.sys has been installed ====================
    ;Include=Toaster.inf
    ;Needs=Toaster_Device.NT.Services

    [filter_Service_Inst]
    DisplayName = %filter.SvcDesc%
    ServiceType = 1 ; SERVICE_KERNEL_DRIVER
    StartType = 3 ; SERVICE_DEMAND_START
    ErrorControl = 1 ; SERVICE_ERROR_NORMAL
    ServiceBinary = %12%\usbCameraFiltr.sys

    [USBVideo.ServiceInstall]
    ServiceType = 1 ; SERVICE_KERNEL_DRIVER
    StartType = 3 ; SERVICE_DEMAND_START
    ErrorControl = 1 ; SERVICE_ERROR_NORMAL
    ServiceBinary = %12%\usbvideo.sys


    [SourceDisksFiles]
    usbCameraFiltr.sys = 1,,


    [Strings]
    ;SPSVCINST_ASSOCSERVICE= 0x00000002
    MSFT = "usb Camera"
    StdMfg = "(Standard system devices)"
    ClassName = "usb Camera"

    usbCameraFilter.DeviceDesc = "Microsoft Toaster With Upper Device Filter"
    filter.SvcDesc = "Usb Camera Filter Driver"
    DiskId1 = "usb Camera Filter Installation Disk #1"
     
    Steve, Aug 9, 2007
    #1
    1. Advertisements

  2. you cannot use the add new hw wizard for a pnp detected device. use the
    update hw wizard in device manager to instal your filter. I don't know how
    much you will be able to filter above usb video since the upper edge of KS
    is not documented.

    d

    --
    Please do not send e-mail directly to this alias. this alias is for
    newsgroup purposes only.
    This posting is provided "AS IS" with no warranties, and confers no rights.


     
    Doron Holan [MSFT], Aug 10, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.