EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How do I get notify when I disconnect a mounted network drive from Win

#36511
Posted: 04/18/2016 02:14:18
by Chongho Kim (Standard support level)
Joined: 03/18/2016
Posts: 8

I want to disconnect a cbfs drive from Windows Explorer.
So, I did 3 cases

(1)
cbfs.AddMountPoint(.. CallbackFileSystem.CBFS_SYMLINK_NETWORK ..)
--> Explorer says "Permission Denied"
(2)
cbfs.AddMountPoint(.. CallbackFileSystem.CBFS_SYMLINK_NETWORK | CallbackFileSystem.CBFS_SYMLINK_NETWORK_ALLOW_MAP_AS_DRIVE ..)
--> Explorer says "The system cannot find the file specified"
(3)
cbfs.AddMountPoint(.. CallbackFileSystem.CBFS_SYMLINK_LOCAL |
CallbackFileSystem.CBFS_SYMLINK_NETWORK |
CallbackFileSystem.CBFS_SYMLINK_NETWORK_ALLOW_MAP_AS_DRIVE ..)
--> The drive successfully disconnected. But I can not get any Notify.

I really want to get some notify.
How?
#36514
Posted: 04/18/2016 04:36:09
by Eugene Mayevski (Team)

Thank you for contacting us.

Unfortunately I don't think there's a way to get such notification. CBFS creates a share, and other processes map or unmap the share as a drive. The share owner is not notified about such operations. *Maybe* there exist some ways in Windows API to get notified about some network drive being connected or disconnected, but this is beyond the scope of CBFS functionality.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2631 times

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




|

Back to top

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

Got it!