Permission Flags - ReplaceIM
If an application has the ReplaceIM flag enabled in the MSN® Messenger Activity directory, then the Channel object will have an additional event, OnIMReceived, an additional read-write property, IM, and an additional method, SendIMAsUser.
The OnIMReceived event is fired when an instant message is received.
The IM property is a read-write string that contains the original instant message. By writing to this property, the message can be modified before it is displayed. The message, possibly with modifications made during processing by the OnIMReceived event handler, is displayed in the Messenger Chat History window. The message can no longer be modified, once the OnIMReceived event is finished.
The SendIMAsUser method sends an instant message that appears as if the user had typed the message and pressed ENTER.
An application must be able to demonstrate a need for the ability to send messages as the user, and not just as the application, to be considered for this permission flag.
This permission flag might be useful for translation software, which might dynamically replace the contents of an incoming message with the translated version of that message.