DefineDosDevice vs IoCreateSymbolicLink

Hi, I am having the same problem as below (appeared in
NTFSD, 2002). I read another post in NTFSD, mentioning
that DefineDosDevice informs windows about the new
media insertion, whereas IoCreateSymbolicLink doesnot.
How can I solve this problem? Or is DefineDosDevice
the only way to make the drive appear in explorer?

thanks.
DK

-----Original Message-----
From: xxxxx@suntail.com [mailto:xxxxx@suntail.com]

Sent: Friday, July 05, 2002 9:46 AM
To: File Systems Developers
Subject: [ntfsd] Mounting drives in Windows XP

I am trying to mount a volume so it appears as a drive
letter. I am
currently using IoCreateSymbolicLink to create a link
to the volume
device. This works on Windows 2000 but on XP the drive
can be accessed
from a command prompt but it does not appear in
explorer.


Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

you should use the Windows API: BroadcastSystemMessage
to tell the OS that new media has been inserted after
DefineDosDevice or IoCreateSymbolicLink on 2k and xp.

Robert

— Dileep Kumar wrote:
> Hi, I am having the same problem as below (appeared
> in
> NTFSD, 2002). I read another post in NTFSD,
> mentioning
> that DefineDosDevice informs windows about the new
> media insertion, whereas IoCreateSymbolicLink
> doesnot.
> How can I solve this problem? Or is DefineDosDevice
> the only way to make the drive appear in explorer?
>
> thanks.
> DK
>
> -----Original Message-----
> From: xxxxx@suntail.com
> [mailto:xxxxx@suntail.com]
>
> Sent: Friday, July 05, 2002 9:46 AM
> To: File Systems Developers
> Subject: [ntfsd] Mounting drives in Windows XP
>
> I am trying to mount a volume so it appears as a
> drive
> letter. I am
> currently using IoCreateSymbolicLink to create a
> link
> to the volume
> device. This works on Windows 2000 but on XP the
> drive
> can be accessed
> from a command prompt but it does not appear in
> explorer.
>
>
>
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing
> online.
> http://taxes.yahoo.com/filing.html
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

Robert, Thanks. I can do that from user mode, but how
do I do that from kernel mode? Or did you mean that,
If I do a createsymboliclink from kernel mode, the
driver should inform another user mode application,
which will then broadcast the message?

regards
DK

— Windows File Systems Devs Interest List digest
wrote:
> NTFSD Digest for Thursday, February 05, 2004.
Subject: Re: DefineDosDevice vs IoCreateSymbolicLink
From: robert zhou
Date: Thu, 5 Feb 2004 12:27:31 -0800 (PST)
X-Message-Number: 10

>you should use the Windows API:
BroadcastSystemMessage
>to tell the OS that new media has been inserted after
>DefineDosDevice or IoCreateSymbolicLink on 2k and
xp.

Robert

— Dileep Kumar wrote:
> Hi, I am having the same problem as below (appeared
> in
> NTFSD, 2002). I read another post in NTFSD,
> mentioning
> that DefineDosDevice informs windows about the new
> media insertion, whereas IoCreateSymbolicLink
> doesnot.
> How can I solve this problem? Or is DefineDosDevice
> the only way to make the drive appear in explorer?
>
> thanks.
> DK

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html