473,770 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2274
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******** ******@tk2msftn gp13.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
11053
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 created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project name. Deleting those files corrected that problem. I deleted the Virtual Directory, rebooted, and...
1
2660
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 that says: 'There was a problem retrieving printer information for this object. The object may have been sent to a printer that was unavailable.' When I choose 'report wizard', I can go through all of the steps but then I get an error message...
7
8869
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
6
28592
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 standard hard drive, but the different is that, all underlying implementations such as create a file at the "Z" drive, etc. will be mapped to my dll or services. Thanks Tony
2
2685
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 all!
1
2000
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 virtual drive Like h:\%username% mapped to my desktop from my webserver.
1
2482
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 tell me. Thanks and Regards Bhaskar
1
9083
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 still cannot use any FSO to read it. Here is my code: <% Dim fs set fs=Server.CreateObject("Scripting.FileSystemObject")
2
3669
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 virtual or ghost partition? I think virtual might be the wrong term for it, as when i try to google it, it comes with creating a drive letter to go to a folder in your current drive. Which wasn't exactly what i was looking for. And when try to...
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.