Platform SDK: Exchange 2000 Server

INNTPOnPostFinal Interface

[This is preliminary documentation and subject to change.]

The INNTPOnPostFinal interface defines the interface between event sinks written with CDO and the NNTP service OnPostFinal event source.

IID
CD000028-8B95-11D1-82DB-00C04FB1625D
Extends
IDispatch

Member Summary

Method

Name Description
OnPostFinal Called by the NNTP event source on bound OnPostFinal event sinks after a message or news feed has been posted by the NNTP service.

Remarks

To implement an NNTP OnPostFinal event sink using CDO, you create and register a local COM class that exposes the CDO INNTPOnPostFinal interface.

For more information on writing NNTP OnPostFinal event sinks, see SMTP/NNTP Transport Event Sinks_with_CDO.

Example

[C++,IDL]

The code below is an example using the Active Template Library (ATL) to implement an NNTP OnPostFinal event sink.

#include "StdAfx.h"
#include "sinkproj.h"  // contains guides for this class
#include "resource.h"
#import "c:\program files\common files\system\ado\msado15.dll" raw_interfaces_only no_namespace
#import "c:\exchsrvr\bin\cdoex.dll" raw_interfaces_only no_namespace
class ATL_NO_VTABLE CMyClass :
    public CComObjectRootEx<CComSingleThreadModel>,
    public CComCoClass<CMyClass,&CLSID_MyClass>,
    public IDispatchImpl<INNTPOnPostFinal,&__uuidof(INNTPOnPostFinal),&LIBID_MyClass>
{
public:
     CMyClass() {}
DECLARE_REGISTRY_RESOURCEID(IDR_MyClass)
DECLARE_NOT_AGGREGATABLE(CMyClass)

BEGIN_COM_MAP(CMyClass)
  COM_INTERFACE_ENTRY(INNTPOnPostFinal)
  COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()

// INNTPOnPostFinal
public:
   STDMETHOD(OnPostFinal) (/* in */ IMessage* pMsg, /* in,out */ CdoEventStatus* EventStatus);
private:
   // any other custom methods you wish to use
   
};

CMyClass::OnPostFinal( IMessage* pMsg, CdoEventStatus* EventStatus)
{
   // TODO:  add sink code here
}
[Visual Basic]
' References to ADO 2.5 and CDO for Microsoft Exchange
Implements CDO.INNTPOnPostFinal

Public Sub INNTPOnPostFinal_OnPostFinal( ByVal Msg as CDO.Message,  EventStatus as CdoEventStatus )
  REM  Add sink code here
End Sub
[VBScript]
<SCRIPT LANGUAGE="VBScript">
Sub INNTPOnPostFinal_OnPostFinal( Msg, EventStatus )
  ' code here
End Sub
</SCRIPT>

See Also

SMTP/NNTP Transport Event Sinks with CDO

INNTPOnPost Interface

INNTPOnPostEarly Interface

IMessage Interface