How to access \\server1\share1\abc.txt from driver.

In my filter driver, I need to access file in remote share in behalf of
calling process, and the security context allows that user to access remote
file such as \server1\share1\abc.txt. Question is what’s the correct
spelling for this file for ZwCreateFile? Something like
\??\server1\share1\abc.txt?

Thanks.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I use a service that logs in with the proper access rights. Then, I
create a thread in the driver in the process context of my service. Then
I can access the shares from my driver.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@math.uic.edu
Sent: Friday, October 26, 2001 8:23 PM
To: File Systems Developers
Subject: [ntfsd] How to access \server1\share1\abc.txt from driver.

In my filter driver, I need to access file in remote share in behalf of
calling process, and the security context allows that user to access
remote
file such as \server1\share1\abc.txt. Question is what’s the correct
spelling for this file for ZwCreateFile? Something like
\??\server1\share1\abc.txt?

Thanks.


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

The correct spelling for opening such a file with ZwCreateFile is

\Device\Mup\Server\share\path\file.ext

The ??\ device maps to \DosDevices\ and hence can only be used for known
(mapped) drive letters.


Bartjan.

At 20:23 26-10-2001 +0000, xxxxx@math.uic.edu wrote:

In my filter driver, I need to access file in remote share in behalf of
calling process, and the security context allows that user to access remote
file such as \server1\share1\abc.txt. Question is what’s the correct
spelling for this file for ZwCreateFile? Something like
\??\server1\share1\abc.txt?

Thanks.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> file such as \server1\share1\abc.txt. Question is what’s the correct

spelling for this file for ZwCreateFile? Something like
\??\server1\share1\abc.txt?

??\UNC\server\share\path

Max


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com