EldoS | Feel safer!

Software components for data protection, secure storage and transfer

DestroyOnProcessTerminate­d ==> remove mounting points?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#3920
Posted: 10/02/2007 03:18:01
by Kenny Clement (Priority Standard support level)
Joined: 09/03/2007
Posts: 61

Hi,

In case of a crash or kill of our application, SolFS drives are automatically dismounted, because of the DestroyOnProcessTerminate­d property.

Works perfectly.

However, the mounting points are not removed.
So, in explorer, I can still see the mounting points as 'broken drives', with a red question mark.

Is it possible to remove the mounting points as well?


#3922
Posted: 10/02/2007 04:55:15
by Volodymyr Zinin (EldoS Corp.)

When the program that should unmount SolFS storages terminates unexpectedly and the flag DestroyOnProcessTerminated is set then the SolFS driver deletes this storages.

The windows explorer re-reads the list of existing storages (i.e. mounting points) only when it receives the window message WM_DEVICECHANGE. But the driver cannot send any window message. That is why the nonexistent mount point is shown.

The decision of the problem can be the following:
Either use a "watchdog" process (which belongs to the same logon session) that will watch over the main process. And then will call the code which is attached to this message if it terminates unexpectedly.
Or recreate the same mount point and delete it right away (in case of uselessness). In this case the WM_DEVICECHANGE message will be sent automatically.


[ Download ]
#3923
Posted: 10/02/2007 05:26:03
by Kenny Clement (Priority Standard support level)
Joined: 09/03/2007
Posts: 61

Thanks for the quick response!

Reply

Statistics

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