Syed, I was looking at doing something very similar[1]. I learned that memory mapped files are not what you want, however, a number of the list participants had some great suggestions for other ways to do this, the most promising (IMHO) was creating a pluggable protocol. I don't have a URL handy, but I know there is a tutorial on one of the major .net sites, and there may be a link from the thread linked to below.
HTH Erick [1] http://discuss.develop.com/archives/wa.exe?S2=dotnet&L=DOTNET&q=Ramdisk+like +device+for+pdfs&s=&f=&a=&b= ----- Original Message ----- From: "Syed.Alam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 23, 2002 8:43 AM 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.