Microsoft Chat Server Development Guide

MangleTopic Sample

This extension modifies channel topics by removing non-alphabetic characters.

Description

This sample modifies the channel topic during the OnChannelPropertyChanged pre-update notification. The extension allows only channel topics containing the characters A-Z, a-z, and spaces. This sample also demonstrates how to implement custom commands from a user to enable and disable topic mangling.

See CustomCommand Sample for an alternative approach to adding custom commands to the Chat protocol.

Installation

This sample is built using Microsoft Visual Basic 5.0. You must have Microsoft Exchange Chat Service V5.5 SP1 installed.

To install the sample:

  1. Run "regsvr32 MangleTopic.dll" from the command line to register the extension.
  2. Run regcatid.reg by double-clicking from Windows NT Explorer.
  3. Run Chat Service Manager.
  4. Select the local server. Right-click on Extensions, and select New, then Add Extension….
  5. Select "MangleTopicExtension.MangleTopic" from the list, and click OK.
  6. Restart the chat service.

Source Listing

The following files can be found in the chat documentation installation directory, in Samples\vb5\MangleTopic:

File Purpose
MangleTopic.cls Visual Basic class module
MangleTopic.dll Chat server extension DLL


© 1998 Microsoft Corporation. All rights reserved.