Creating an MSG file requires a call to StgCreateDocfile orr StgCreateStorageEx, which only allow files, not pipes AFAIK.
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
"MON205" <MON205[ at ]discussions.microsoft.com> wrote in message news:846BF5C6-D547-4130-B5EB-EEFF13BAF910[ at ]microsoft.com...
[Quoted Text] > Hello colleagues, > I want to use the SaveAs method in the _MailItem interface to save a mail > to > a non physical path. > I tried to pass a Named Pipe name \\\\.\\PIPE\\pipename but the function > fails. > To understand why I want this, now I save the mail to a temp location, e.g > "C:\Temp\" then read the file, then store data in a Data Base. > The problem is the time wasting in writing the temp file and then reading. > So, I'm thinking in a way to store the mail on memory to speed up the > process. I guess that the SaveAs() uses the CreateFile() API, and in the > documentation of the CreateFile() I found that it can take a Named Pipe > name. > But as a result it seems NOooooooooooo. > Now, can anyone help me improving my application? >
|