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

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#36511
Posted: 04/18/2016 02:14:18
by Chongho Kim (Standard support level)
Joined: 03/18/2016
Posts: 5

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 (EldoS Corp.)

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 1106 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!