Hello,

I'am trying to understand how a "net use * user@host" invokes the
network redirector to connect to a remote host. I use a non-predefined
network provider type (WNNC_NET_TYPE), so I could use it for ftp or
something similar.

The network provider library is invoked by the mpr to determinate
whether the target belongs to the network provider or not.

If I return WN_SUCCESS I guess then NPAddConnection() is called. And
what happends then? Is it the responsibility of the network provider to
call a IOCTL or FSCTL of the FSD?
Could I send a FSCTL with IRP_MN_USER_FS_REQUEST as minor function?

Thank you for your efforts!
--

h.wulff
[dont send me an email]

Re: How Do I invoke a network redirector to connect to a remote host? by Maxim

Maxim
Tue Dec 07 17:19:08 CST 2004

NPAddConnection must contact your FSD - using your own means - and force it
to create a connection.
Then, the FSD must listen for IOCTL_REDIR_QUERY_PATH and claim the
pathnames.
Then - usual MJ_CREATE path.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"h.wulff" <zuhause@aol.com> wrote in message
news:MPG.1c2020bff046713989693@news.t-online.de...
> Hello,
>
> I'am trying to understand how a "net use * user@host" invokes the
> network redirector to connect to a remote host. I use a non-predefined
> network provider type (WNNC_NET_TYPE), so I could use it for ftp or
> something similar.
>
> The network provider library is invoked by the mpr to determinate
> whether the target belongs to the network provider or not.
>
> If I return WN_SUCCESS I guess then NPAddConnection() is called. And
> what happends then? Is it the responsibility of the network provider to
> call a IOCTL or FSCTL of the FSD?
> Could I send a FSCTL with IRP_MN_USER_FS_REQUEST as minor function?
>
> Thank you for your efforts!
> --
>
> h.wulff
> [dont send me an email]