954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Evento msn_OnIMWindowCreated não funciona para o MSN 2011

Hello, I developed an application to the msn messenger in C # to monitor and control the company in msn. the problem is that after being updated for 2011 msn my application no longer works!
The event msn_OnIMWindowCreated no longer works ....

Can anyone help me? : |

wavecorporate
Newbie Poster
4 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

have you checked the new API??

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
 

Hi!

The new Api, not exists OnIMWindowCreated event! :(

wavecorporate
Newbie Poster
4 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

Check for any equivalent there must be some replacement

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
 

Have you tried for wrappers ?

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
 

I'II check!

wavecorporate
Newbie Poster
4 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

if you have the API on MSN 2011 can you please share it so that some one can help you?

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
 

I can not find the corresponding event in the api. could you help me?

private void msn_OnIMWindowDestroyed(object pIMWindow)
{
if (!globalStatus)
{
return;
}

if (!cfgSettings.LogConversations)
{
return;
}

try
{
//MessengerAPI.IMessengerConversationWnd imWindow = (MessengerAPI.IMessengerConversationWnd)pIMWindow;
MessengerAPI.IMSNMessengerConversationWnd imWindow = (MessengerAPI.IMSNMessengerConversationWnd)pIMWindow;

//MessengerAPI.IMessengerContacts contacts = (MessengerAPI.IMessengerContacts)imWindow.Contacts;
MessengerAPI.IMSNMessengerContacts contacts = (MessengerAPI.IMSNMessengerContacts)imWindow.Contacts;

string contactName = string.Empty;

//foreach (MessengerAPI.IMessengerContact contact in contacts)
foreach (MessengerAPI.IMSNMessengerContact contact in contacts)
{
contactName = contact.FriendlyName + ";";
}

if (imWindow.History != null)
{
string history = imWindow.History;

SaveHistory(history, contactName, imWindow.HWND);
}

openedWindows.Remove(imWindow.HWND);
}
catch
{
}
finally
{
}
}

private void msn_OnIMWindowCreated(object pIMWindow)
{
if (!globalStatus)
{
return;
}

if (!cfgSettings.LogConversations)
{
return;
}

try
{
//MessengerAPI.IMessengerConversationWnd imWindow = (MessengerAPI.IMessengerConversationWnd)pIMWindow;
MessengerAPI.IMSNMessengerConversationWnd imWindow = (MessengerAPI.IMSNMessengerConversationWnd)pIMWindow;
//MessengerAPI.IMessengerContacts contacts = (MessengerAPI.IMessengerContacts)imWindow.Contacts;
MessengerAPI.IMSNMessengerContacts contacts = (MessengerAPI.IMSNMessengerContacts)imWindow.Contacts;

string contactName = string.Empty;

//foreach (MessengerAPI.IMessengerContact contact in contacts)
foreach (MessengerAPI.IMSNMessengerContact contact in contacts)
{
contactName = contact.FriendlyName;
}

//if (contactName == "Oscar")
//{
// imWindow.Close();
// MessageBox.Show("Contacto bloqueado!", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information);
//}

if (!openedWindows.ContainsKey(imWindow.HWND))
{
openedWindows.Add(imWindow.HWND, pIMWindow);
}
}
catch
{
}
}

#endregion Conversations

Attachments Interop.MessengerAPI_.zip (9.51KB)
wavecorporate
Newbie Poster
4 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

Have you checked this link

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: