You declared it wrong (Atleast this is what Microsoft says it should be after a VB6 form being upgraded to .Net)
code:
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Integer, _
ByVal nCmdShow As Integer) _
As Integer
And as well dont set the oMessenger object to MessengerApi.Messenger as this will cause the Windows Messenger application to actual run. Instead set it to oMessenger when you actually make the plugin.