Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

RE: How and where attach to 'NwRdr' and 'LanmamRedirector-'?

OSR_Community_UserOSR_Community_User Member Posts: 110,217
what i did was to create a system thread in driverentry to call a routine.
in this routine, the thread will try to attach to the redirector. if the
attach fails, a timer will be set and the thread will wait on this timer
before trying again. when the attach succeeds, the thread will be killed. i
have been successfully attaching to the redirector till now...

Ho Mun Chuen
@@ "Not everything that counts can be counted;
<" )~ and not everything that can be counted counts"
/\/\ ..... Albert Einstein
----- Original Message -----
From: Pavel Hrdina <[email protected]>
To: File Systems Developers <[email protected]>
Sent: Tuesday, May 16, 2000 5:36 AM
Subject: [ntfsd] RE: How and where attach to 'NwRdr' and 'LanmamRedirector

How: Use IoAttachDeviceToDeviceStack. Target device object
pointer you should obtain by calling IoGetDeviceObjectPointer.
As a name you must use L"\\Device\\LanmanRedirector" or
L"\\Device\\NwRdr" and you should immediately dereference
returned file object (you will no longer need it).

Where: This thing is harder to resolve. You can use timer with
associated DPC and when the timer expires you should
queue work item. The routine called in some worker thread
have to check if the device(s) already exists. If it is then
you will have to attach to it and timer is no more needed.
Some other method is less-correct but it will give better
results. If you want to know this one let me know.


> -----P?vodn? zpr?va-----
> Od: Brayn Sander Garcia [SMTP:[email protected]]
> Odesl?no: 15. kv?tna 2000 23:05
> Komu: File Systems Developers
> P?edm?t: [ntfsd] How and where attach to 'NwRdr' and
> 'LanmamRedirector'?
> Hi devlopers,
> I need help in the follow :
> How and where attach to 'NwRdr'
> and 'LanmamRedirector'?
> Best regards,
> Sander.
> Tu correo gratis en MixMail
> Inicia tu navegacion en
> ---
> You are currently subscribed to ntfsd as: [email protected]
> To unsubscribe send a blank email to $subst('Email.Unsub')

You are currently subscribed to ntfsd as: [email protected]
To unsubscribe send a blank email to $subst('Email.Unsub')
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE