Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Defines an object used to access a file system that contains messages, such as the SMTP service drop directory, on a Microsoft Windows 2000 Server.
Note Because DropDirectory is used only for accessing messages on a file system, it is not useful in CDO for Exchange where messages are saved in the information store.
Dim iDropDir as new CDO.DropDirectory Dim iMsgs as CDO.IMessages Set iMessages = iDropDir.GetMessages ' get from SMTP drop directory Dim iMsg as CDO.Message For Each iMessage in iMsgs Debug.Print iMsg .From Debug.Print iMsg .To Debug.Print iMsg .Subject Debug.Pring iMsg .TextBody Next iMessage
#import "c:\program files\common files\system\ado\msado15.dll" no_namespace #import "c:\winnt\system32\cdosys.dll" no_namespace #include <iostream.h> main() { CoInitialize(); { IDropDirectoryPtr iDropDir(__uuidof(DropDirectory)); IMessagesPtr iMessages; iMessages = iDropDir->GetMessages(""); long Count = iMessages->Count; for(long i=1;i<=Count;i++) { IMessagePtr iMsg; iMsg = iMessages->item[i]; cout << iMsg->To << endl; cout << iMsg->From << endl; cout << iMsg->Subject << endl; cout << iMsg->TextBody << endl; } } CoUninitialize(); }