PDA

View Full Version : RAMDISK Version 1.0 for Windows 2000/Windows XP



anon
06.02.09, 18:53
This software consists of a RAM disk driver (RAMDisk.sys), an Installer/Property sheet provider (RAMDisk.dll), and an installation file (RAMDisk.inf), which together form an installable RAM disk on Windows 2000 and Windows XP.


The driver is almost identical to the Microsoft sample driver (See KB Article Q257405). The installer/property sheet provider DLL, however, adds additional possibilities to change the drive letter and disk size in a more user-friendly way, using the device manager. This makes this package almost mature enough to concur with other RAM disk products on the market.

To install the driver on Windows 2000, follow these steps :

In Control Panel, double-click to start the Add/Remove Hardware utility.
Select Add/Troubleshoot a device.
Select Add a new device.
Select No, I want to select the hardware from a list.
Select Other devices, and then click Next.
Click the Have Disk button and point to the folder that contains the RAMDisk.inf file.


To install the driver on Windows XP, follow these steps :

In Control Panel, double-click to start the Add/Remove Hardware utility.
Select Add a new hardware device.
Select Yes, I have already connected the hardware. Click Next.
Select Add a new device.
Select Install the hardware that I manually select from a list. Click Next.
Select Show All Devices.
Select the Have Disk button and point to the folder that contains the RAMDisk.inf file.
Select Next, Next, Finish.


Let the PC reboot if Windows asks for it. Note that this may not always be the case.

The Property Page provider allows you to change the drive letter and/or size of the RAM disk without rebooting. To change the drive size and/or drive letter, follow these steps :

Select System (Properties).
Within System Properties, select Device Manager.
Expand RAM Disk; select Ramdisk [QSoft] and click the right mouse button.
Select Properties; select Ram Disk Properties.
Select an appropriate drive letter and/or a disk size.
Click OK.


On Windows 2000, you may open the Device Manager by selecting subsequently "My Computer --> Properties --> Hardware".

ATTENTION: The content of the RAM disk is LOST after changing the disk size and/or drive letter!

It may happen that the RAM disk is not properly functioning anymore after you increased the disk size, due to lack of contiguous memory space. In this case, you may need to reboot your PC or fall back to a lower disk size to resolve the problem. The default drive letter used during installation is B:. You may change this default after installation, according your own needs.

The "RAMDISK_inst.zip" contains the necessary installation files for the RAM disk driver Version 1.0. RAMDISK_src.zip contains the sources of this software. It allows you to freely modify and rebuild the binaries using Visual Studio.NET and the Windows DDK for XP, build 2600. Both the driver and the installer are extended with a lot of trace outputs to learn how the OS interacts with these binaries. The Installer sources demonstrate also show how you can use basic MFC functions (CString , CArray, ...) within a Driver Property Sheet Provider.

If you used the original Microsoft RAMDisk sample (Q257405), you have to uninstall it first before installing this version. It is also recommended to delete the Driver Class from the Registry for the MS Sample Driver by deleting the next entries and their sub-keys:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Cl ass\
{78A1C341-4539-11d3-B88D-00C04FAD5171}]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Class\
{78A1C341-4539-11d3-B88D-00C04FAD5171}]

Also, search within the %SYSTEMROOT%\Inf for the original *.inf file that contains the text "ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}" and delete this *.inf file.

Download (http://www.codeguru.com/cpp/w-p/system/devicedriverdevelopment/article.php/c5789)

Useful if you need to create a RAM disk fast, and can't be bothered to install a "professional" program/driver. You're limited to a maximum size of 64MB, though. A good use would be putting your browser's cache inside one of these for instant page loading :wink:

Aurion
12.02.09, 15:25
A good use would be putting your browser's cache inside one of these for instant page loading

this is interesting,maybe I will do it for real to see how things would be since you know,I've been playing around with a preloader called "FireFox pre-loader" which make a slight difference in loading a new web page instantly from the cache,but I'm seeking a fasker alternative

anon
12.02.09, 16:31
I've been playing around with a preloader called "FireFox pre-loader" which make a slight difference in loading a new web page instantly from the cache

But that makes firefox.exe run constantly in the background with a ~30MB memory usage even when you're not using the browser, right?


I'm seeking a fasker alternative

Then I suggest you try this - RAM is much faster than hard drives. Make sure you disable memory caching in Firefox so that it doesn't stack up, as that's where you'll be storing the "disk" cache as well: go to about:config, and set browser.cache.memory.enable to false. (Create it -boolean- and set it to false if it doesn't exist)