RAM Disk Driver --------------- This sample demonstrates a software only Windows NT Device Driver. This driver is provided for educational purposes only. Generally the Windows NT cache manager does a much better job of optimizing memory usage than using a RAM disk. Installing ---------- 3) Copy RAMDISK.SYS to %WINDIR%\SYSTEM32\DRIVERS. 4) Edit RAMDISK.INI, change parameters to match your preferences. 5) Run REGINI.EXE with RAMDISK.INI as an argument. 6) Reboot and enjoy. Configuring the RAM disk ------------------------ The RAM disk can be configured using the registry. The RAMDISK.INI file contains the default values for all the configurable parameters. A brief description of each parameter follows: Name Type Default Value ==== ==== ============= BreakOnEntry REG_DWORD 0 Boolean value which determines whether a break point will be generated during the DriverEntry routine. It has no effect in a free build of the driver. DebugLevel REG_DWORD 0 This value specifies the level of diagnostic messages produced. Larger values result in more verbose messages. It has no effect in a free build of the driver. DiskSize REG_DWORD 0x100000 (1,048,576 1Mb) The size of the RAM disk in bytes. DriveLetter REG_SZ Z: The drive letter associated with the RAM disk. RootDirEntries REG_DWORD 512 The number of entries in the root directory. SectorsPerCluster REG_DWORD 2 The granularity of the allocation. Copyright (c) 1993 Microsoft CorporationIf you want to write your own, pick up a copy of Systems Programming for Windows 95 by Walter Oney; Chapters 15 and 16 are devoted to creating IFS-compatible drivers, including a RAM drive project, which comes with full source code. There's also some decent shareware available that might fit your needs better; try EEC Systems, they have both RAM Disk-NT, which will support sizes of up to 192MB, and SuperDisk-NT, which can support horrendously large sized RAM Disks (something like 28GB on one of the versions if you've got the memory available; both require NT, and >64MB of RAM to use