EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Detect if mounting point already exists

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#6012
Posted: 04/24/2008 04:31:57
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

Hi all,
How do we detect if the mounting point already exists?
There appears to be a bug in that if I try to:
map random network path at any drive letter of your choice (say M:)
then
v_cbfs.CreateStorage();
v_cbfs.AddMountingPoint(L"M:");
v_cbfs.MountMedia(60000);

it doesn't fail even if there is something else mounted at M:

Thanks.
#6013
Posted: 04/24/2008 05:04:47
by Volodymyr Zinin (EldoS Corp.)

Hello,

It's because AddMountingPoint creates 'global' type of mounting points (that are visible from all sessions). If in a logon session the 'local' mounting point with the same name already exists then nothing error occurs. But the created 'global' mounting point will not be visible from this session, because the 'local' type has a priority before the 'global' one with the same name.

For creating 'local' mounting points use the AddMountingPointEx method.

Reply

Statistics

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