Hi Experts,

I am writing a virtual Serial/COM port driver using WDF.
Everything working fine with my driver except Enumeration of
Serial Devices which are attached to my Virtual COM port.

I built the same driver for both WindowsXP SP2 and Windows Vista
Ultimate.
Its enumerating the the attached devices in WindowsXP SP2, But Its not
enumerating
the attached Serial device in Windows Vista Ultimate.

I am loading the Serenum as upper filter to my driver which im
specifying in INf file.
One thing I observed is that, In WindowsXP during the driverloading
process
I am getting IRP_MJ_CREATE (SerialWdmDeviceFileCreate() callback) and
attached devices are enumerated in that sequence.

But In case of windows Vista, during driver loading process I haven't
seen
any EvtDeviceFileCreate() callback called, hence there is no attached
device enumeratiion. Is this the expected result?

Also with !devstack command i could able to see serenum as upper
filter device object in XP, where as in Vista the command did not show
serenum as upper filter device object.

Regards,
Nancy

Re: Serial Device Enumeration Problem (VCP) by Amit

Amit
Thu Jun 07 01:38:06 CDT 2007

On Jun 5, 10:00 am, k.nancy....@gmail.com wrote:
> Hi Experts,
>
> I am writing a virtual Serial/COM port driver using WDF.
> Everything working fine with my driver except Enumeration of
> Serial Devices which are attached to my Virtual COM port.
>
> I built the same driver for both WindowsXP SP2 and Windows Vista
> Ultimate.
> Its enumerating the the attached devices in WindowsXP SP2, But Its not
> enumerating
> the attached Serial device in Windows Vista Ultimate.
>
> I am loading the Serenum as upper filter to my driver which im
> specifying in INf file.
> One thing I observed is that, In WindowsXP during the driverloading
> process
> I am getting IRP_MJ_CREATE (SerialWdmDeviceFileCreate() callback) and
> attached devices are enumerated in that sequence.
>
> But In case of windows Vista, during driver loading process I haven't
> seen
> any EvtDeviceFileCreate() callback called, hence there is no attached
> device enumeratiion. Is this the expected result?
>
> Also with !devstack command i could able to see serenum as upper
> filter device object in XP, where as in Vista the command did not show
> serenum as upper filter device object.
>
> Regards,
> Nancy

Do u get any of the enumerations irps (IRP_MN_QUERY_DEVICE_RELATIONS)
this irp is the one being sent when u say enumerate the device form
the device manager or as a part of driver loading, in other way
sapeaking r u handing all pnp enum irp's?


Re: Serial Device Enumeration Problem (VCP) by k

k
Thu Jun 07 02:04:15 CDT 2007

>
> Do u get any of the enumerations irps (IRP_MN_QUERY_DEVICE_RELATIONS)
> this irp is the one being sent when u say enumerate the device form
> the device manager or as a part of driver loading, in other way
> sapeaking r u handing all pnp enum irp's?- Hide quoted text -

Hi Amit,
Thank you for the reply.
I don't think I need to handle PnP IRPs
(IRP_MN_QUERY_DEVICE_RELATIONS)
in KMDF. PnP IRPs are handled by Framework. Moreover my problem is
with Windows Vista only.
The same driver working in Windows XP SP2. Help me in this regard .

With Thanks ,
Nancy




Re: Serial Device Enumeration Problem (VCP) by Doron

Doron
Sat Jun 09 10:55:12 CDT 2007

correct, KMDF handles these irps for you

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.


<k.nancy.raj@gmail.com> wrote in message
news:1181199855.063146.124810@o5g2000hsb.googlegroups.com...
> >
>> Do u get any of the enumerations irps (IRP_MN_QUERY_DEVICE_RELATIONS)
>> this irp is the one being sent when u say enumerate the device form
>> the device manager or as a part of driver loading, in other way
>> sapeaking r u handing all pnp enum irp's?- Hide quoted text -
>
> Hi Amit,
> Thank you for the reply.
> I don't think I need to handle PnP IRPs
> (IRP_MN_QUERY_DEVICE_RELATIONS)
> in KMDF. PnP IRPs are handled by Framework. Moreover my problem is
> with Windows Vista only.
> The same driver working in Windows XP SP2. Help me in this regard .
>
> With Thanks ,
> Nancy
>
>
>