A complete sample consisting of a Channel Agent and all tools used to configure the agent's refresh options can be found in the SDK samples directory under Sample Channel Agent. The sample can be found in the "Samples\Microsoft Site Server\Push\Sample Channel Agent\Agent" directory from the location of the SDK install. The sections below outline the key points found in the sample.
Other examples of Channel Agents can be found in the "C:\microsoft site server\bin" directory. This is where the pre-installed agents and admin scripts are located. You can study these to get a picture of how the various agents are implemented.
Development Environment Prerequisites
Most of the sample can be viewed with the NotePad text editor. A C/C++ compiler is required to compile the COM Property Page implementation. Make sure you have the Unicode libraries installed before you attempt to compile it. A Microsoft® Developer Studio® project is included with the sample should that format be desired.