I have used the wizard to create a c# library. In the Execute method of the GWCommand class I have the following code:

C3POTypeLibrary.IGWClientState6 myCL = (C3POTypeLibrary.IGWClientState6)SendToSharePoint. g_C3POManager.ClientState;

There is a property of myCL = myCl.SelectedMessages - this returns an object.

Does anyone know:

a) Which Type to cast the object back to to get the messages
b) How do I know how to infer with type the system.__comobject type should return
c) If there is ANY .NET related documentation.