EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Accessing \\.\Test mount points?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#9153
Posted: 03/05/2009 10:27:32
by John Bradshaw (Basic support level)
Joined: 03/05/2009
Posts: 2

This is probably a dumb question, but i cannot figure out how to access or use a mountpoint assigned as \\.\Test ?

I had a quick search of the forum and didn't see any possible answers.

Cheers,
John
#9154
Posted: 03/05/2009 10:56:28
by Volodymyr Zinin (EldoS Corp.)

Hi John,

Using the system APIs like CreateFile or FindFirstFile it is possible via such mountpoint to access files on a virtual disk.
For example:
// Open a file "1.txt"
HANDLE h = CreateFileW(L"\\\\.\\Test\\1.txt", ...);
// Enumerate the root directory on a virtual disk
HANDLE h = FindFirstFileW(L"\\\\.\\Test\\*", ...);
#9155
Posted: 03/05/2009 11:20:58
by John Bradshaw (Basic support level)
Joined: 03/05/2009
Posts: 2

Hi Vladimir,

Thanks for clearing that up, i guess the only way to access a mountpoint in explorer is to either mount it to a drive letter or network drive mapping?

E.g i can go Start -> Run -> \\.\Test\

I'm trying to launch a process from a 'hidden' virtual disk

Cheers,
John
#9156
Posted: 03/05/2009 11:30:48
by Volodymyr Zinin (EldoS Corp.)

Quote
John Bradshaw wrote:
i guess the only way to access a mountpoint in explorer is to either mount it to a drive letter or network drive mapping?

You are right. But also you can use network mounting points without specifying drive letter. In this case the access will be only via the UNC path.

Reply

Statistics

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