Now I have a MFC application which accepts the user name and password and on click of connect it should mount the drive.
The drivers team has already created and installed the driver which has function to mount the drive.
Now the problem is when I click the login button on my MFC app then the mount function in drive should be called.
But how do I post the message to the driver? Is there any other way arround ?
> But how do I post the message to the driver?
DeviceIoControl
Ask the driver guys for the IOCTL code and the parameters buffer.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
Thanks, Thats what I also read from the msdn doc
http://msdn.microsoft.com/en-us/library/ff540130(v=VS.85).aspx
“This user-mode service or application can send custom FSCTL or IOCTL requests to the network mini-redirector driver to indicate that it should start or stop. The redirector can call the RDBSS RxStartMinirdr or RxStopMinirdr routines to notify RDBSS to start or stop this network mini-redirector.”
But how do I send this or pass the IOCTL request from my application (Driver guys have the IOCTL code but not sure how to invoke it from MFC.)
MFC is rather old. I think they did an update in the latest Visual Studio,
but I am not sure. However, it is the GUI stuff I use when I have to
venture into user land. All that being said, guess what? There is no MFC
stuff for doing file I/O, IIRC and there is no need for it. That is part of
the Win32 subsystem or, if you like, the native API using CreateFile() or
NtCreateFile().
wrote in message news:xxxxx@ntfsd…
Thanks, Thats what I also read from the msdn doc
http://msdn.microsoft.com/en-us/library/ff540130(v=VS.85).aspx
“This user-mode service or application can send custom FSCTL or IOCTL
requests to the network mini-redirector driver to indicate that it should
start or stop. The redirector can call the RDBSS RxStartMinirdr or
RxStopMinirdr routines to notify RDBSS to start or stop this network
mini-redirector.”
But how do I send this or pass the IOCTL request from my application (Driver
guys have the IOCTL code but not sure how to invoke it from MFC.)