Microsoft Chat Server Development Guide

Edit your project's IDL file

  1. Unless you need to use it for administering your component from a property page, you can remove the default interface that was created for your new object. Were it not required, you could delete the following line from MessageFilter.h, for instance.
    public IDispatchImpl<IChatMsgFilter, &IID_IChatMsgFilter, &LIBID_MSGFILTERLib>,
    
  2. Add an importlib statement for the chat extensibility type library. Also, add the chat callback interfaces your extension supports.
    For example:
    import "oaidl.idl";
    import "ocidl.idl";
    
    [
       uuid(8A66F6DB-80AD-11D1-98C6-00C04FB90B72),
       version(1.0),
       helpstring("CustomCommand 1.0 Type Library")
    ]
    library CUSTOMCOMMANDLib
    {
       importlib("stdole32.tlb");
       importlib("stdole2.tlb");
       importlib("\winnt\system32\inetsrv\chatsvc.exe");
       [
          uuid(8A66F6EB-80AD-11D1-98C6-00C04FB90B72),
          helpstring("Chat Extensibility CustomCmd Class")
       ]
       coclass CustomCmd
       {
          interface IChatExtensionCallBack;
          interface IChatServerCallBack;
       };
    };
    

© 1998 Microsoft Corporation. All rights reserved.