473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to create/reg/access a virtual drive

I have a speciffic task of which i do not know how to start on.

The task is to create a virtual drive (like a ram drive og deamon tools).
Through this drive files are to be saved and loaded like a normal drive, but
the "files" are created runtime by my program. The idea is that the program
accessing the drive can not tell the diffrence.

Here is what i need:
- How to register the drive with windows.
- How to create a connection between the drive and my program.
- Which drive operations to implement in my program.

Thanks :)
Jens
Nov 15 '05 #1
1 2258
Interesting. This would depend on how "real" the drive needs to appear.
Can it be something your application abstracts or it something other (i.e.
not yours) applications would need to see as a windows device? If you can
just abstract a device for your program, then one way I am thinking (if you
want a RAM only abstraction) is derive a class from Stream. Inside your
class, use an object[] or jagged byte array to hold each byte stream of
files. Naturally, you would need a lot of ram for many files or big files.
You could also use a backing store of a binary file to serialize your
structure to disk inside your Stream. Then other programs or your program
could use this just (kinda) like a file stream or memory stream with some
added function. If you want a device that shows up in MyComputer, then I
think you need to create a device driver using c/c++ and maybe even some
assembler. Check out the device driver SDK for samples and ideas.

--
William Stacey, DNS MVP

"Iwan" <ji***********@esenet.dk> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
I have a speciffic task of which i do not know how to start on.

The task is to create a virtual drive (like a ram drive og deamon tools).
Through this drive files are to be saved and loaded like a normal drive, but the "files" are created runtime by my program. The idea is that the program accessing the drive can not tell the diffrence.

Here is what i need:
- How to register the drive with windows.
- How to create a connection between the drive and my program.
- Which drive operations to implement in my program.

Thanks :)
Jens

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
6
by: Tony Liu | last post by:
Hi, is it possible to create a virtual drive? For instance, let's say I want to create a virtual drive call "Z", and that drive should be visible in the My Computer folder and works like a...
2
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to...
1
by: freddy | last post by:
I would like to create a virtual web drive like what xdrive has. I what this for personal reasons. I know this can be done I just do't know where to start. I would login to my webpage and have a...
1
by: Bhaskar Jatav | last post by:
Hello sir, It is highly obliged to tell me how to create virtual drive for any folder,file or any drive. I am working on one in which i need to create virtual drive. please anybody...
1
by: tanya.wang | last post by:
I want to access files from a remote server so I mapped it in my server under z:\ for \\myserver\web\mysite\images\ I added this UNC path to my IIS virtual directory and name it as "upload" but I...
2
by: Geolas | last post by:
Hi, new to this community.I am not really sure if this was the right place, because this community seem to be for developers really. Well my question is, as the topic states, how to create a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.