I think you're confused as to what a memory-mapped file is. A memory-mapped
file is a file whose contents you can access as if it was memory (i.e. by
using pointers). I think what you're looking for is a ramdrive. A ramdrive
is a device driver that presents a section of memory as if it were a drive.
There is not a supported ramdrive driver available for Win2K or XP, AFAIK.
There is however the source code for a not-supported, not-for-production-use
ramdrive device driver available in the DDK.

- Jim

-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
Syed.Alam
Sent: Thursday, May 23, 2002 11:43 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] OT: Replacing standard file with memory mapped file


Hi

Is there anyway that i can intercept CreateFile() for some standard disk
file, to force it to open a memory mapped file provided by me? I want to do
that in order to increase performance. I have no control on the third party
software opening a disk file, but i know that file.

thanks

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to