Share via


INNTPOnPostFinal Interface

Topic Last Modified: 2006-06-13

The INNTPOnPostFinal interface defines the interface between event sinks written with Collaboration Data Objects (CDO) and the Network News Transfer Protocol (NNTP) service OnPostFinal event source.

CLSID

CD000028-8B95-11D1-82DB-00C04FB1625D

Extends

IDispatch

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Member Summary

The following table lists the methods of the INNTPOnPostFinal interface.

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 Component Object Model (COM) class that exposes the CDO INNTPOnPostFinal interface.

For more information about writing NNTP OnPostFinal event sinks, see SMTP/NNTP Transport Event Sinks with CDO.

Examples

[C++,IDL]

#include "StdAfx.h"
#include "sinkproj.h"  // #include "resource.h"
#import "c:\program files\common files\system\ado\msado15.dll" raw_interfaces_only no_namespace
#import "c:\program files\common files\microsoft shared\cdo\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>