Hi there,

I wrote a virtual disk driver (use a file to simulate a disk), it works
fine. Then I wrote a application runs in RING-3, which can send a customer
IOCTL code to the driver, I want the driver create a symbolic link to a
driver-letter such as "Z:" when the customer IOCTL code arrival.

I did so, modified my source code. When the driver got the IOCTL code, I
create a symbolic link between the FDO and \DosDevices\Z:, and the
IoCreateSymbolicLink() call return success. But in fact, when I open my
explorer, there are no "Z:" driver letter usable.

Could you please tell me why? And could you please tell me how to resolve
this issue??

Thanks.

Re: [HELP] Virtual Disk Driver - Create symbolic link. by Gereon

Gereon
Fri Dec 12 16:44:16 CST 2003

My virtual disk driver exhibits a similar problem right after it is
installed. I can go to my "Z:" drive from a DOS prompt, and I can type
"Z:\" into a window and it will go there, but it does not show up as a
device in Explorer until I reboot.

Perhaps we are both missing some kind of "Refresh Devices" command? Anyone
know about this?

"Euphen Liu" <anonymous@anonymous.com> wrote in message
news:%23cbPCylvDHA.3116@tk2msftngp13.phx.gbl...
> Hi there,
>
> I wrote a virtual disk driver (use a file to simulate a disk), it works
> fine. Then I wrote a application runs in RING-3, which can send a customer
> IOCTL code to the driver, I want the driver create a symbolic link to a
> driver-letter such as "Z:" when the customer IOCTL code arrival.
>
> I did so, modified my source code. When the driver got the IOCTL code, I
> create a symbolic link between the FDO and \DosDevices\Z:, and the
> IoCreateSymbolicLink() call return success. But in fact, when I open my
> explorer, there are no "Z:" driver letter usable.
>
> Could you please tell me why? And could you please tell me how to resolve
> this issue??
>
> Thanks.
>
>
>
>



Re: [HELP] Virtual Disk Driver - Create symbolic link. by Euphen

Euphen
Tue Dec 16 21:04:31 CST 2003

"but it does not show up as a device in Explorer until I reboot."
Are you means that after reboot, the "Z:" will show in Explorer ???


In my implement, after I install my driver, I can run a little program to
send an IOCTL, which let the driver dynamic create a FDO.

In one of my test, after the FDO created correct (does not create symbolic
link), I call DefineDosDevice() in user-mode application, the "Z:" will show
in explorer at once. But I must be administrator to call DefineDosDevice(),
else the system may say "Access Denied", that's a big problem.


Any one know this issue?? Help please.



"Gereon" <gereon_msdn@alwaysfind.us> wrote in message
news:eYbuEGQwDHA.1740@TK2MSFTNGP09.phx.gbl...
> My virtual disk driver exhibits a similar problem right after it is
> installed. I can go to my "Z:" drive from a DOS prompt, and I can type
> "Z:\" into a window and it will go there, but it does not show up as a
> device in Explorer until I reboot.
>
> Perhaps we are both missing some kind of "Refresh Devices" command?
Anyone
> know about this?
>
> "Euphen Liu" <anonymous@anonymous.com> wrote in message
> news:%23cbPCylvDHA.3116@tk2msftngp13.phx.gbl...
> > Hi there,
> >
> > I wrote a virtual disk driver (use a file to simulate a disk), it works
> > fine. Then I wrote a application runs in RING-3, which can send a
customer
> > IOCTL code to the driver, I want the driver create a symbolic link to a
> > driver-letter such as "Z:" when the customer IOCTL code arrival.
> >
> > I did so, modified my source code. When the driver got the IOCTL code, I
> > create a symbolic link between the FDO and \DosDevices\Z:, and the
> > IoCreateSymbolicLink() call return success. But in fact, when I open my
> > explorer, there are no "Z:" driver letter usable.
> >
> > Could you please tell me why? And could you please tell me how to
resolve
> > this issue??
> >
> > Thanks.
> >
> >
> >
> >
>
>