Resolving network path for local share.

Hi all,

I use PsSetLoadImageNotifyRoutine to catch launch of a process. If user
starts application from local computer via network share name, callback
routine gets process name like following: “\Device\LanmanRedirector\server
name\share name\app name.exe”. Where server name could be like “localhost”,
“127.0.0.1”, computer name, IP address, etc.

Is there a way to understand is that local share name, and if yes how to get
local file system path ?

Thanks
Valery Druba

>Is there a way to understand is that local share name, and if yes how to get

local file system path ?

Offload this to user mode, and try to use NetXxx APIs to get the share list for
the server. This is the only way. This requires some rights on the server and
will fail if you have no such rights.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Thank you very much, Maxim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim
S. Shatskih
Sent: 29 June, 2007 5:56 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Resolving network path for local share.

>Is there a way to understand is that local share name, and
if yes how
>to get local file system path ?

Offload this to user mode, and try to use NetXxx APIs to get
the share list for the server. This is the only way. This
requires some rights on the server and will fail if you have
no such rights.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as:
xxxxx@arcadia.spb.ru To unsubscribe send a blank email
to xxxxx@lists.osr.com