private void OnConversation(Ddeml.MONCONVSTRUCT mon) { StringBuilder psz; int length; // Get the service name from the hszSvc string handle. psz = new StringBuilder(Ddeml.MAX_STRING_SIZE); length = Ddeml.DdeQueryString(_Context.InstanceId, mon.hszSvc, psz, psz.Capacity, Ddeml.CP_WINANSI); string service = psz.ToString(); // Get the topic name from the hszTopic string handle. psz = new StringBuilder(Ddeml.MAX_STRING_SIZE); length = Ddeml.DdeQueryString(_Context.InstanceId, mon.hszTopic, psz, psz.Capacity, Ddeml.CP_WINANSI); string topic = psz.ToString(); DdemlConversationActivityEventArgs args = new DdemlConversationActivityEventArgs( service, topic, mon.fConnect, mon.hConvClient, mon.hConvServer, mon.hTask); if (ConversationActivity != null) { ConversationActivity(this, args); } }
internal DdeConversationActivityEventArgs(DdemlConversationActivityEventArgs args) : base(args) { _DdemlObject = args; }