IMonitor::DoInitialize

The DoInitialize method must be implemented by the monitor. The MCSVC calls this method to obtain a capture filter immediately before calling the NPP's IRTC::Connect method.

HRESULT DoInitialize(IUnknown*pUnkMonitorCtrl,
HBLOBhNPPBlob);

Parameters

  • pUnkMonitorCtrl
    [in] An IUnknown pointer passed in by the MCSVC. To obtain a supported monitor control interface, the monitor must call IUnknown::QueryInterface on the pointer.

  • hNPPBlob
    [in, out] On input, a handle to an NPP BLOB.

    On output, an NPP BLOB that contains a capture filter.

Return Values

If the method is successful, the return value is S_OK (which is the same as NOERROR).

If the method is unsuccessful, the return value is an error code. On error, the MCSVC will not create the monitor or call IUnknown::Release on the interface pointer.

Remarks

The MCSVC calls the DoInitialize method to perform any required monitor initialization.

Requirements

Client Requires Windows 2000 Professional or Windows NT Workstation 4.0.
Server Requires Windows 2000 Server or Windows NT Server 4.0.
Header

Declared in Netmon.h.