EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Filtering mapped drives

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#24683
Posted: 04/25/2013 08:48:13
by Vladimir Cherniga (EldoS Corp.)

Do you have the same results - adding callback rule doesn't hit the callback ?
#24684
Posted: 04/25/2013 08:58:03
by Siva Balasubramaniam (Priority Standard support level)
Joined: 03/11/2013
Posts: 4

For me the AddFilterCallbackRule (for x:\* -- x:\ is mapped drive)call is failing. After that call, I get the list of active rules & it does not have the mapped drive entry (x:\*)
#24685
Posted: 04/25/2013 09:06:44
by Vladimir Cherniga (EldoS Corp.)

Could you type the list of rules enumerated. In most cases, mapped drive name is translated internally to NT device name format, like \Device\HarddiskVolume1\... and then it returns in native format, using GetFilterRule... method.
#24686
Posted: 04/25/2013 09:29:19
by Siva Balasubramaniam (Priority Standard support level)
Joined: 03/11/2013
Posts: 4

I understand what you are saying. I am checking the returned values & the everything except the mapped drive is there.
#24687
Posted: 04/25/2013 09:35:46
by Vladimir Cherniga (EldoS Corp.)

We need to reproduce the issue in order to confirm the problem. Are there any details we need to know to retrieve the same results ? Thank you in advance.
#24691
Posted: 04/25/2013 13:55:44
by Siva Balasubramaniam (Priority Standard support level)
Joined: 03/11/2013
Posts: 4

The mount point fails if we try to add the filter rule as part of starting a service through System Service Manager. The reason this fails is due to the fact that we cannot resolve mount point (or junction point/redirector). If we try to add this rule using a stand alone application that's started on command prompt, everything is working.

Is there a limitation with Mapped drive when the process is started using windows service manager?

thanks for all the help.
#24692
Posted: 04/25/2013 14:39:36
by Eugene Mayevski (EldoS Corp.)

Indeed the rule can currently be created only for the drive that already exists. CallbackFilter doesn't track changes of resources it's capable of monitoring. There exist helper events that let you detect mount and unmount of removable media, but there's no similar thing for network paths and mounted disks.


Sincerely yours
Eugene Mayevski
#24695
Posted: 04/25/2013 16:10:47
by Vladimir Cherniga (EldoS Corp.)

Quote
The mount point fails if we try to add the filter rule as part of starting a service through System Service Manager. The reason this fails is due to the fact that we cannot resolve mount point (or junction point/redirector). If we try to add this rule using a stand alone application that's started on command prompt, everything is working.

When you start a service, it does work in a global system workspace, not in the current user local session. You local network disks are created in a local session and only visible for the current user, not for the system session. You may check the dedicated MSDN articles about the local and global workspaces (search for the global and local DosDevices object directory). WinObj utility may come in handy to understand a conception of local and global sessions in network drives mapping.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 6610 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!