The majority of the files in the "Sample Agent" directory are the implementation of the property sheet for the agent that appears in the Microsoft Management Console when the user selects "properties" for the agent. This implementation was done using the Active Template Library (ATL) with Microsoft Foundation Classes (MFC) enabled to aid in the GUI elements. The files that make up the implementation are listed below, along with a brief description.
Agent.cpp
This file contains the standard ATL code and DLL entry points.
Agent.DEF
This file exports the functions from the DLL in the standard fashion.
Agent.IDL
This file contains the IDL definition for the property sheet implementation COM class and IAgentPropPageProvider interface. As is customary, the coclass is called AgentPropPageProvider.
Agent.rc
This file contains all the resources that make up the property page. Most of the content is automatically generated by Microsoft Developer Studio.
AgentPropPage.cpp
This file contains the object's implementation of the property page, including the standard constructors, DoDataExchange method, and the various events.
AgentPropPage.h
This file contains the forward declarations for the methods in AgentPropPage.cpp.
AgentPropPageProvider.cpp
This file contains the implementation of functions that update the registry with the channel agent information including the CLSID of the COM object that implements the property page.
AgentPropPageProvider.h
This file contains the forward declarations for the functions in the AgentPropPageprovider.cpp file.
AgentPropPageProvider.rgs
This file contains registry setting for the property page COM object and interfaces.
DispHelp.cpp
This file contains "helper" functions to help simplify calling methods through an IDispatch interface.
Disphelp.h
This file contains the foward declarations for the functions in the file DispHelp.cpp.
resource.h
This file contains the standard resource definitions for the property page.
StdAfx.cpp/StdAfx.h
These files are automatically generated by the ATL AppWizard and contain standard include directives on a per-project basis.