How to mount a volume as a user ?
- From: JPB <JPB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 May 2008 12:08:00 -0700
Hi,
I wrote some piece of code using the API "SetVolumeMountPoint" wich allow
me
to mount a volume wich looks like \\?\Volume{GUID} (I create myself this
volume from my own driver) in an NTFS folder.
It works as far as my process run as an user from the "administrators"
group, but when I try tu run it as a normal user I receive an "access
denied".
As in Vista I get also an "access denied" when my process run as an user
from the "administrators" group I dig the users access right (former
privilege) but no success.
I know how to put NTFS rights on the root of the volume I mount. But I'am
not so clear with the access right of the "\\?\Volume{GUID}" object.
Is this object just a link on the internal "\device\Mydriver" object ? As
swhon in WinObj (Sysinternals tool).
How can I change the DACL of this object ?
Do have I to change the acces rights of "\device\Mydriver" (deficult for me
I'am not allowed to use IoCreateDeviceSecure to run from W2K to Vista) ?
So can anybody can help me to use Mountvol.exe as a user ?
Thanks in advance.
Cheers
PS : last solution will be to mount from a service, but I'am a bit upset to
create a service just for that !
.
- Follow-Ups:
- Re: How to mount a volume as a user ?
- From: Pegasus \(MVP\)
- Re: How to mount a volume as a user ?
- Prev by Date: Re: any Windows file syncing tools?
- Next by Date: Viewing PDF files in thumbnails
- Previous by thread: InstallShield
- Next by thread: Re: How to mount a volume as a user ?
- Index(es):
Relevant Pages
|
Loading