Hi All,
I am new to the list. I have a WDM driver which uses certain obsolete Halxxx
calls like HalTranslateBusAddress(), HalGet/SetBusData()…I want to replace
that into direct call interface method, using BUS_INTERFACE_STANDARD
obtained thro IRP_MN_QUERY_INTERFACE.
Actually I tried two approaches–
-
Build a IRP for IRP_MN_QUERY_INTERFACE and fill in the required
information(GUID,Version,Allocated Interface buffer), send it to the lower
stack device object but it returned STATUS_NOT_SUPPORTED(0xC00000BB) for
BUS_INTERFACE_STANDARD.
-
Use IoQueryDeviceInterface, with GUID_BUS_INTERFACE_STANDARD, obtain a
list of symbolic links of all device objects in the system that exports this
interface, again the call succeded with STATUS_SUCCESS but the symbolicLink
List was NULL.
I thought BUS_INTERFACE_STANDARD was a system-defined interface and should
be available for all WDM drivers trying to use TranslateBusAddress,
GetBusData and SetBusData kind-of calls.
Any help on this problem is greatly appreciated.
Thanks
Ajith
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Why not use IRP_MN_QUERY_RESOURCES
regards
jeseem
mailto:xxxxx@nestec.net
----- Original Message -----
From: “Ajith JayaMohan”
To: “NT Developers Interest List”
Sent: Thursday, July 06, 2000 6:44 PM
Subject: [ntdev] Bus Interface Standard…
> Hi All,
> I am new to the list. I have a WDM driver which uses certain obsolete
Halxxx
> calls like HalTranslateBusAddress(), HalGet/SetBusData()…I want to
replace
> that into direct call interface method, using BUS_INTERFACE_STANDARD
> obtained thro IRP_MN_QUERY_INTERFACE.
>
> Actually I tried two approaches–
>
> 1. Build a IRP for IRP_MN_QUERY_INTERFACE and fill in the required
> information(GUID,Version,Allocated Interface buffer), send it to the lower
> stack device object but it returned STATUS_NOT_SUPPORTED(0xC00000BB) for
> BUS_INTERFACE_STANDARD.
>
> 2. Use IoQueryDeviceInterface, with GUID_BUS_INTERFACE_STANDARD, obtain a
> list of symbolic links of all device objects in the system that exports
this
> interface, again the call succeded with STATUS_SUCCESS but the
symbolicLink
> List was NULL.
>
> I thought BUS_INTERFACE_STANDARD was a system-defined interface and should
> be available for all WDM drivers trying to use TranslateBusAddress,
> GetBusData and SetBusData kind-of calls.
>
>
> Any help on this problem is greatly appreciated.
>
> Thanks
> Ajith
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
http://www.numega.com/drivercentral/tech_tips/cfgwdm.shtml
-----Original Message-----
From: Ajith JayaMohan [mailto:xxxxx@hotmail.com]
Sent: Thursday, July 06, 2000 3:45 PM
To: NT Developers Interest List
Subject: [ntdev] Bus Interface Standard…
Hi All,
I am new to the list. I have a WDM driver which uses certain obsolete Halxxx
calls like HalTranslateBusAddress(), HalGet/SetBusData()…I want to replace
that into direct call interface method, using BUS_INTERFACE_STANDARD
obtained thro IRP_MN_QUERY_INTERFACE.
Actually I tried two approaches–
-
Build a IRP for IRP_MN_QUERY_INTERFACE and fill in the required
information(GUID,Version,Allocated Interface buffer), send it to the lower
stack device object but it returned STATUS_NOT_SUPPORTED(0xC00000BB) for
BUS_INTERFACE_STANDARD.
-
Use IoQueryDeviceInterface, with GUID_BUS_INTERFACE_STANDARD, obtain a
list of symbolic links of all device objects in the system that exports this
interface, again the call succeded with STATUS_SUCCESS but the symbolicLink
List was NULL.
I thought BUS_INTERFACE_STANDARD was a system-defined interface and should
be available for all WDM drivers trying to use TranslateBusAddress,
GetBusData and SetBusData kind-of calls.
Any help on this problem is greatly appreciated.
Thanks
Ajith
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
To read or write bus configuration data I send an IRP
IRP_MJ_PNP and IRP_MN_READ_CONFIG/IRP_MN_WRITE_CONFIG
down to the bus driver as described under
http://www.numega.com/drivercentral/tech_tips/cfgwdm.shtml
The DDK notes that one can retrieve the # of actual read or written bytes
trough
the Irp->IoStatus.Information field.
(http://www.microsoft.com/DDK/ddkdocs/win2k/pnp-irps_9ipe.htm)
(http://www.microsoft.com/DDK/DDKdocs/win98ddk/pnp-irps_9ipe.htm)
On Win2k this mechanism works correctly. But on Win98 Gold it always return
zero. What went wrong? Is this a known bug in Win98? Any workarounds?
Thank you very much in advance.
Carsten
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Eliyas Yakub
Sent: Freitag, 7. Juli 2000 20:51
To: NT Developers Interest List
Subject: [ntdev] RE: Bus Interface Standard…
http://www.numega.com/drivercentral/tech_tips/cfgwdm.shtml
-----Original Message-----
From: Ajith JayaMohan [mailto:xxxxx@hotmail.com]
Sent: Thursday, July 06, 2000 3:45 PM
To: NT Developers Interest List
Subject: [ntdev] Bus Interface Standard…
Hi All,
I am new to the list. I have a WDM driver which uses certain
obsolete Halxxx
calls like HalTranslateBusAddress(), HalGet/SetBusData()…I want
to replace
that into direct call interface method, using BUS_INTERFACE_STANDARD
obtained thro IRP_MN_QUERY_INTERFACE.
Actually I tried two approaches–
-
Build a IRP for IRP_MN_QUERY_INTERFACE and fill in the required
information(GUID,Version,Allocated Interface buffer), send it to
the lower
stack device object but it returned STATUS_NOT_SUPPORTED(0xC00000BB) for
BUS_INTERFACE_STANDARD.
-
Use IoQueryDeviceInterface, with GUID_BUS_INTERFACE_STANDARD, obtain a
list of symbolic links of all device objects in the system that
exports this
interface, again the call succeded with STATUS_SUCCESS but the
symbolicLink
List was NULL.
I thought BUS_INTERFACE_STANDARD was a system-defined interface
and should
be available for all WDM drivers trying to use TranslateBusAddress,
GetBusData and SetBusData kind-of calls.
Any help on this problem is greatly appreciated.
Thanks
Ajith