EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Why call CreateStorage?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#19277
Posted: 03/03/2012 13:21:50
by Fred Lackey (Basic support level)
Joined: 03/03/2012
Posts: 16

Could someone explain what the method CreateStorage does? The documentation says that it simply creates a virtual drive. Could you expand on this? If it performs some type of complex operation within the OS I would like to verify that this is successful, unfortunately the method returns a void rather than a success message or boolean.

In looking at the "Mounter" example application, CreateStorage must be called before adding a mount point, however the code does not validate that this was actually performed (checking memory, evaluating resources, etc.). Instead, it simply enables the "Add Mount" button once the "Create Storage" button has been clicked. It would be comforting to rely on the internal driver to determine IF a mount point can be added INSTEAD OF relying on the WinForms app for this.

Thanks, in advance,
Fred
#19278
Posted: 03/03/2012 13:45:37
by Eugene Mayevski (EldoS Corp.)

The function literally creates a virtual storage for the system. This includes registering a PDO in kernel and doing other background work. The user-mode method that you see in the sample would throw an extension with Win32 error code in case CreateStorage fails.

AddMountingPoint adds a mounting point (or several points if you call it several times) to the existing storage.

Sample application is, well, a sample, which must be kept free from supplementary logic such as detailed evaluation of errors - doing this would add too much burden to samples.


Sincerely yours
Eugene Mayevski

Reply

Statistics

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