The following table describes the contents of each source file used in the sample plug-in.
Source file
Description
ContextAdmin.cpp
This file implements the custom administration interface provided by the sample plug-in. The sample implementation allows you to set the output path for context information and select the types of contexts to report. For more information on plug-in custom interfaces, see Creating an MMC Property Page.
ContextDll.cpp
This file implements generic code required for .dll connectivity for the sample plug-in.
ContextPlugin.cpp
This file implements the main functionality of the sample plug-in by implementing the IWMSBasicPlugin interface, and the IWMSEventNotificationPlugin interface. The CContextPlugin::OnEvent method in this sample is called by Windows Media Services whenever an event occurs. Based on the event type, the sample plug-in calls a wrapper function and outputs the event information to the output path specified by using either the property page or the custom administration interface.
ContextSample.asp
This file implements a Web administration page for the sample plug-in. Copy this file to your %systemroot%\system32\windows media\server\admin\web\wmssecure\pages\plugins folder to configure the sample plug-in through the Web administration interface.
ContextSamplePropPage.cpp
This file implements generic code required for .dll connectivity for the property page associated with the sample plug-in.
ContextSamplePropPageImpl.cpp
This file implements the property page for the sample plug-in. Using the property page you can change the settings for the sample plug-in from the administrative console on the Properties tab under Event notification.