Platform SDK: Chat Server |
This extension monitors for chat users login/logout notifications and outputs a report to a text file (C:\CHATSESS.LOG).
This sample demonstrates event bindings for user creation and deletion notifications. On receiving the OnNewUser event notification, it stores the user's nickname and logon time in a collection. When the OnCloseUser event occurs, it logs the user's nickname, connect time and disconnect time to a text log file (C:\CHATSESS.LOG).
This sample is built using Microsoft Visual C++ 5.0 and ATL. You must have Microsoft Exchange Chat Service V5.5 SP1 installed.
The project's workspace and makefile will register the extension when compiled. You can use regsvr32 to register the DLL on any additional machine (for example, for remote administration using MMC).
To install the sample:
The following files can be found in the chat documentation installation directory, in Samples\vc5\LogMonitor:
File | Purpose |
---|---|
LogMonitor.dll | Chat server extension DLL |
SessionMonitor.cpp | CSessionMonitor implementation |
SessionMonitor.h | CSessionMonitor declaration |