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

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

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

I really want to get some notify.
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



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!