Implementing a Filter

A Filter authenticates incoming requests. It is an ECOM plug-in loaded by the PTP-IP Controller process. This section describes how to implement a Filter.

Procedure

  1. implement the MPTPIPHostFilter::Accept() function.

    The filter examines the parameters such as Host GUID and Host Friendly Name from PTP-IP Controller process to filter the requests.

    void Accept ( 
                      const TDesC& aHostFriendlyName,
                      TDesC8& aHostGUID,
                      TRequestStatus& aStatus);

    You must include the ptpipfilterapi.lib and cptpiphostfilter.h files.

    Note: A filter can also be used to invoke a dialog box to accept or reject an incoming request.