none
VCOM virtual driver for XP: Lower drive in stack as PNP driver RRS feed

  • Question

  •  

    Hi,

    I have written a virtual COM driver for Bluooth stack (USB) for windows XP
    VCOM is implemented as a device Upper filter driver to USB BT stack.

    -> When I install BT driver, it is showing lower driver as  \Driver\ACPI (which is correct)
    -> After this, I install VCOM driver.
       During the VCOM installation, first it is unloading the BTstok driver and loading again.
       For VCOM driver, it is showing lower driver as \Driver\BTstack but for BTstack, it shows
       Lower driver as \Driver\PNP Driver instead of \Driver\ACPI.

    My question is why it is showing lower driver as Driver\PNP driver?

    Is it the issue of INF file?

    Seperate INF files are written for BTStack and VCOM driver.

    VCOM INF
    =========

    ;/*++
    ;
    ;
    ;Module Name:
    ;
    ;    USBVCOM.INF
    ;
    ;Abstract:
    ;    INF file for installing USBVCOM device drivers
    ;--*/
    [Version]
    Signature="$WINDOWS NT$"
    Class = PORTS
    ClassGuid = {4d36e978-e325-11ce-bfc1-08002be10318}
    Provider=%xyz%
    DriverVer=04/24/2008,6.0.5736.1

    [DestinationDirs]
    DefaultDestDir = 12

    ;*****************************************
    ; USBVCOM Device VCOM Install Section
    ;*****************************************

    [Manufacturer]
    %StdMfg%=Standard

    [Standard]
    ; DisplayName         Section           DeviceId
    ; -----------         -------           --------

    %USBVCOM.DeviceDesc%=USBVCOM, {4d36e978-e325-11ce-bfc1-08002be10318}\USBVCOM

    ;=====================================================================
    [USBVCOM.NT] 
    ;=============== Get the standard stuff from USBBT.inf==============
    Include=USBBT.inf
    Needs=USBBT.Dev.NT
    CopyFiles=USBVCOM.NT.Copy
    AddReg=USBVCOM.NT.HW.AddReg

    [USBVCOM.NT.Copy]
    USBVCOM.sys

    ;[USBVCOM.NT.AddReg]
    ; Add registry entries here

    [USBVCOM.NT.HW]
    ;================ Add our own stuff
    AddReg = USBVCOM.NT.HW.AddReg
    ;================ Add in the standard stuff provided by USBBT
    Include = USBBT.inf
    Needs = USBBT.Dev.NT.HW

    [USBVCOM.NT.HW.AddReg] 
    HKR,,"UpperFilters",0x00010000,"USBVCOM"

    ;*****************************************
    ; USBBT Device Filter Service Section
    ;*****************************************

    [USBVCOM.NT.Services]
    AddService = USBVCOM, , USBVCOM.AddService
    ;
    ;=========== This will add toaster as the service and make sure =====
    ;=========== that USBBT.sys has been installed ====================
    Include=USBBT.inf
    Needs=USBBT.Dev.NT.Services

    [USBVCOM.AddService]
    DisplayName    = %USBVCOM.SvcDesc%
    ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
    StartType      = 3                  ; SERVICE_DEMAND_START
    ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
    ServiceBinary  = %12%\USBVCOM.sys
    Dependencies=USBBT


    ;*************************
    ; Source file information
    ;*************************

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

    [SourceDisksFiles]
    USBVCOM.sys  = 1,,

    [Strings]
    ;SPSVCINST_ASSOCSERVICE= 0x00000002

    Monday, May 12, 2008 2:41 PM

Answers