Re: NDIS5.1 driver in Vista

Tech-Archive recommends: Fix windows errors by optimizing your registry



You should use NdisRegisterDeviceEx() on Vista. It is quite a bit
more advanced than the older funbction, you can set the security
yourself to govern what can and cant open the handle, and what access
you provide.

Hi,
I agree with your above statement, But it is not just
NdisRegisterDeviceEx() which, I have to change in the code, I have to
modify even the way the miniport is registered with NDIS...and that
goes on...where in finally i will end up with porting my miniport
driver to NDIS 6.

I am in a search for the reason for failure in getting the handle. Is
that the new NDIS 6 dosent support this way of accessing its device
object? Which is that interface I have to look for to get this done in
Vista?

The workaround is not a stable solution I guess...I am still in dark
for if it has any side effects....

Unfortunately, it is broken on RC1. The symbolic link cant be opened
form user land.

The DeviceObject is not even accessible in kernel mode...

fat_boy wrote:
Amit wrote:
Hi All,
I am using my NDIS 5.1 miniport driver written for WinXP prof in
Vista Build 5600 (Vista RC1).
The driver is running fine for it supports the backward compatibility,
but I am unable to get the handle for my network device for the driver
I have.
I am trying to get the handle using the IoGetDeviceObjectPointer()
function from another driver, But it always returns
STATUS_NOT_SUPPORTED. What could be the reason for such behaviour?

The same setup ( NDIS miniport driver and the other driver from which i
am trying to get the NDIS handle ) works fine.

Looking forward for your response.....

Hi

You should use NdisRegisterDeviceEx() on Vista. It is quite a bit
more advanced than the older funbction, you can set the security
yourself to govern what can and cant open the handle, and what access
you provide.

Unfortunately, it is broken on RC1. The symbolic link cant be opened
form user land.

.



Relevant Pages

  • Re: WiFi how to send OIDs from user mode (windows vista)
    ... The diagram identifies the Microsoft-provided "Native 802.11 IM Driver" as being layered over the vendor-provided Native 802.11 miniport. ... Only the upper 802.3 edge of the Microsoft Native 802.11 IM driver is presented to the system for binding to ordinary NDIS protocols such as TCP/IP, ... This is true for Windows XP as well as for Vista. ... Microsoft has made modifications to WMI to enforce exclusive access to 802.11 adapter management functions. ...
    (microsoft.public.development.device.drivers)
  • Re: Is there an equivalent call in nDIS for KeQueryTimeIncrement?
    ... compatible" for Windows 9x and NT. ... same .SYS driver file on both 9x and NT. ... This is why Microsoft WHQL did not allow NDIS ... miniport driver, everything will be fine and dandy at this point. ...
    (microsoft.public.development.device.drivers)
  • Re: PC Card legacy Miniport NDIS driver doesnt load under CE5.0
    ... miniport driver with the following DebugZones enabled for "NDIS": ... calling Init() for device 0x004b39e0 ... > It should show why NDIS is not loading the miniport driver. ...
    (microsoft.public.windowsce.platbuilder)
  • NDIS driver with WDM lower edge - a query
    ... I am new to NDIS but from DDK I could gather that I can craete an NDIS ... miniport driver that actually controls a device on a bus in my case a USB ... So my driver is actually a USB function driver as my device sits on ... My question is "does writing an NDIS miniport driver with a WDM lower edge ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS5.1 driver in Vista
    ... IoCreateSymbolicLink(), Offcourse I am taking care abt the distach ... In Vista NdisMRegisterDevice() is not supported - this is ... I am registering my mniport driver with NDIS as below, ...
    (microsoft.public.development.device.drivers)