How to create a RamDrive?

J

jp2msft

Ok, I posed this question before, but instead of leading me to information on
how to create a RamDrive, everyone was more concerned with how to address my
other questions.

My main question is: How can I create a RamDrive? Microsoft does this
whenever it is installing Windows, so hopefully everyone knows what I'm
talking about. I don't need something as low level as what Microsoft uses,
but I'd like to know how to create a virtual drive in C#.

Is it possible? Who cares why - can it be done?
 
I

Ignacio Machin ( .NET/ C# MVP )

Ok, I posed this question before, but instead of leading me to information on
how to create a RamDrive, everyone was more concerned with how to addressmy
other questions.

My main question is: How can I create a RamDrive? Microsoft does this
whenever it is installing Windows, so hopefully everyone knows what I'm
talking about. I don't need something as low level as what Microsoft uses,
but I'd like to know how to create a virtual drive in C#.

Is it possible? Who cares why - can it be done?

Hi,

You will have to P/invoke. Find out how to do it in unmanaged code and
then P/invoke those functions from C#
 
P

PvdG42

jp2msft said:
Ok, I posed this question before, but instead of leading me to information
on
how to create a RamDrive, everyone was more concerned with how to address
my
other questions.

My main question is: How can I create a RamDrive? Microsoft does this
whenever it is installing Windows, so hopefully everyone knows what I'm
talking about. I don't need something as low level as what Microsoft uses,
but I'd like to know how to create a virtual drive in C#.

Is it possible? Who cares why - can it be done?

Probably nobody here in this C# (C Sharp) programming group cares. So,
here's how to find an appropriate Windows group to post in.

As you appear to be using a web interface, start here to find an appropriate
group:

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx

Click the + beside your language. then scroll down to Windows. In Windows,
open the category for your version of Windows, then find a group there to
post in.
 
L

Larry Smith

Ok, I posed this question before, but instead of leading me to information
on
how to create a RamDrive, everyone was more concerned with how to address
my
other questions.

My main question is: How can I create a RamDrive? Microsoft does this
whenever it is installing Windows, so hopefully everyone knows what I'm
talking about. I don't need something as low level as what Microsoft uses,
but I'd like to know how to create a virtual drive in C#.

Is it possible? Who cares why - can it be done?

I'm not aware of any built-in way to do this and seriously doubt there is
one (you never know though). Normally a driver is required to pull this off
and even finding code for that may prove difficult. Doing it on-the-fly may
be even harder if that's what you really want. Otherwise it's better to find
an available driver rather than rolling your own (I have an old FAT-based
one I still use). Note that MSFT used to provide sample driver code on how
to build one yourself. A quick look and the only link I can now find is
this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q257405

I'm not sure if that's the same one I once played with which was limited to
64 MB at the time (this was years ago) but this is just an old and
non-portable (probably FAT) sample only. It's to get you started but heed
the caveats. I doubt you'll want to venture down this avenue on your own but
it might be worth exploring. You can always open an incident with MSFT and
they may point you to a much easier and modern way (assuming you really need
it and have no other options).
 
I

Ignacio Machin ( .NET/ C# MVP )

How else can I access this newsgroup? We do not have Outlook Express here
(corporate policy).

I use google groups, a lousy interface but is better than nothing :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top