EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Ejected disk shows as unspecificed in explorer

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#36787
Posted: 05/23/2016 17:56:22
by Rony Fragin (Standard support level)
Joined: 05/23/2016
Posts: 6

Hi,

After I eject the disk , I can still see it in Explorer with a question mark on it.

I configured:

Code
mCbFs.StorageType = CbFsStorageType.stDiskPnP;
            mCbFs.StorageCharacteristics =  (int)(CallbackFileSystem.scRemovableMedia + CallbackFileSystem.scShowInEjectionTray + CallbackFileSystem.scAllowEjection);


How can I make it disappear completely?

Thanks!
#36788
Posted: 05/24/2016 01:59:55
by Eugene Mayevski (EldoS Corp.)

CBFS separates the drive and media. I.e. you can have a drive without media. Ejection removes a media, but not a drive. To remove a drive you need to remove a mounting point and / or unmount the storage.


Sincerely yours
Eugene Mayevski
#36790
Posted: 05/24/2016 10:04:26
by Volodymyr Zinin (EldoS Corp.)

Could you please specify the parameters of your CallbackFileSystem.AddMountingPoint method call?
Thanks.
#36833
Posted: 05/29/2016 05:49:47
by Rony Fragin (Standard support level)
Joined: 05/23/2016
Posts: 6

I do remove media point and storage with

Code
if (mCbFs.Active)
            {
                for (int Index = mCbFs.MountingPointCount - 1; Index >= 0; --Index)
                {
                    mCbFs.DeleteMountingPoint(Index);
                }
            }
            if (mCbFs.Active)
            {
                try
                {
                    mCbFs.UnmountMedia();
                }
                catch (Exception ex)
                {

                }
            }
            if (mCbFs.StoragePresent)
            {
                try
                {
                    mCbFs.DeleteStorage(true);
                }
                catch (Exception ex)
                {

                }
            }


Event though the help file says that I shouldn't:

OnStorageEjected event/delegate/callback

This event is fired when the storage is removed by the user using Eject command in Explorer. When the event is fired, the storage has been completely destroyed. You don't need to call UnmountMedia() or DeleteStorage() methods.

I run AddMountingPoint with:

Code
mCbFs.AddMountingPoint(driveLetter);


when driveLetter is "X:"
#36834
Posted: 05/29/2016 10:02:10
by Eugene Mayevski (EldoS Corp.)

Thank you for the clarification. Could you please tell us whether your controlling application is a system service or a GUI application? If it's the service, you need to also install Mount Notifier DLL together with the drivers.


Sincerely yours
Eugene Mayevski
#36843
Posted: 05/31/2016 08:58:21
by Rony Fragin (Standard support level)
Joined: 05/23/2016
Posts: 6

Hi,

It's a C# Console App.
#36850
Posted: 05/31/2016 15:27:30
by Eugene Mayevski (EldoS Corp.)

It would be great, if you could narrow down the problem and try the same behavior on some other computer. This would let us understand if the problem is specific to just your computer or to several systems that have something in common.

Also you can try performing your tests with Mapper sample (modify it a bit to match the parameters of your real application) to see, if it behaves differently from your actual project.


Sincerely yours
Eugene Mayevski
#36851
Posted: 05/31/2016 15:29:50
by Rony Fragin (Standard support level)
Joined: 05/23/2016
Posts: 6

It seems that the problem is gone now.

Sorry for the inconvenience!
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 1916 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!