IoCreateSymbolicLink in driver and DefineDosDevice in user mode is the same function?

  1. I use DefineDosDevice() to define a device to a volume, it is successful.
    For example : DefineDosDevice(DDD_RAW_TARGET_PATH, DrvLetter,DevicePath);
  2. But I use IoCreateSymbolicLink to define the same device to a volume, the
    routine returns value is success, but the volume is invisible.
    Fox example : IoCreateSymbolicLink(&symboliclink_name, &device_name);

And I use the winobj tool to check the symboliclink name, the second method
also can see the volume(for example “G:”) in the session.

Who can help me? thanks

*Where* do you create the symbolic link?

Also, are the permissions set correctly? To see whether this is the case, try using IoCreateUnprotectedSymbolicLink() instead of IoCreateSymbolicLink(). However, you should set the ACL to “sit tight”. It’s just a test.

Oliver

-------- Original-Nachricht --------
Datum: Thu, 10 Aug 2006 14:38:39 +0800
Von: “Sun Jiajie”
An: “Windows File Systems Devs Interest List”
Betreff: [ntfsd] IoCreateSymbolicLink in driver and DefineDosDevice in user mode is the same function?

> 1. I use DefineDosDevice() to define a device to a volume, it is
> successful.
> For example : DefineDosDevice(DDD_RAW_TARGET_PATH, DrvLetter,DevicePath);
> 2. But I use IoCreateSymbolicLink to define the same device to a volume,
> the
> routine returns value is success, but the volume is invisible.
> Fox example : IoCreateSymbolicLink(&symboliclink_name, &device_name);
>
> And I use the winobj tool to check the symboliclink name, the second
> method
> also can see the volume(for example “G:”) in the session.
>
> Who can help me? thanks
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmxpro.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


---------------------------------------------------
May the source be with you, stranger :wink:

ICQ: #281645
URL: http://assarbad.net | http://assarbad.info | http://blog.assarbad.info