LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OT: virtual drive API

Sorry if this is a bit off topic.

I'm rusty with the Windows API and I spent some time in the msdn
documentation trying without success to figure out how to create a
virtual filesystem: Something mounted as, say, F:\ in windows, but
controlled by a C program, all the directories and files created on the fly.

This is basically the way programs such as SftpDrive, PowerIso and
others work.
Any idea where to start ?
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 1 of 4
(3,386 Views)
Hi Guillaume,

I think what you're trying to do can be done with the "subst" command.  Below is the link to its syntax.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/subst.mspx?mfr=true

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 2 of 4
(3,359 Views)
Hello Gavin,

> Guillaume,I think what you're trying to do can be done with the
> "subst" command.  Below is the link to its
> syntax.http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/subst.mspx?mfr=true

Not at all. The old DOS subst command simply remaps one drive to another.

I would like to write a service that when the OS tries to access, say,
F:\somedir\somefile.txt
the file (and the directory structure) gets created on the fly by my
program. A virtual drive.

There are programs that do this (TrueCrypt, SftpDrive, PowerIso...) for
specific applications (encrypting a drive into a file, showing an ssh
connection as a drive, showing an iso as a drive...)

I imagine there are plenty of special windows API calls involved but I
don't even know what they are called.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 3 of 4
(3,346 Views)
Hi Guillaume,

There isn't anything in CVI that directly does this.

You're welcome to post on our BreakPoint discussion forum.
http://forums.ni.com/ni/board?board.id=BreakPoint

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 4 of 4
(3,322 Views)